Sherzy
3/17/2016 - 4:24 PM

Sorting

Sorting

components = from e in components orderby e.StartTime select e;

var query = from person in people orderby person.Name descending, person.Age descending select person.Name;

// is equivalent to:

var query = people.OrderByDescending(person => person.Name)
	.ThenByDescending(person => person.Age) 
	.Select(person => person.Name);