Skip to content

Instantly share code, notes, and snippets.

@rarous
Forked from vhenzl/gist:3657030
Created September 6, 2012 16:17
Show Gist options
  • Save rarous/3658051 to your computer and use it in GitHub Desktop.
Save rarous/3658051 to your computer and use it in GitHub Desktop.
from x in list
where x
let y = new { X = x }
orderby y.X
select y;
list.Where(x => x)
.Select(x => new
{
X = x
})
.OrderBy(x => x);
list.
Where(x => x).
Select(x => new { X = x }).
OrderBy(x => x.X);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment