Enumerable.orderBy Method

Sorts the elements of a sequence in ascending order according to a key.
 
 
Static This method is static.

Parameters

source

Type: IEnumerable
A sequence of values to order.
keySelector

Type: Function
A function to extract a key from an element.
Optional: True
comparer

Type: Function
A comparer function to compare keys.
Optional: True

Return Value


Type: IEnumerable
An enumerable whose elements are sorted according to a key.