-
Notifications
You must be signed in to change notification settings - Fork 26
OrderBy
Eugene Sadovoi edited this page Jul 7, 2016
·
1 revision
Sorts the elements of a sequence in ascending order by using a specified key.
OrderBy([keySelector[, comparer]])
A function to extract a key from an element: TKey keySelector(TSource)
A function to compare two key values: number comparer(first, second)
An Ordered Iterable whose elements are sorted according to a key.
This method is implemented by using deferred execution. The immediate return value is an object that stores all the information that is required to perform the action. The query represented by this method is not executed until the object is enumerated.