[]
Sorts the elements of a collection in ascending order.
public static Ordering<T> OrderBy<T, TKey>(this IIndexedSource<T> source, Expression<Func<T, TKey>> keySelector)
Type | Name | Description |
---|---|---|
IIndexedSource<T> | source | A collection of values to order. |
Expression<Func<T, TKey>> | keySelector | A function to extract a key from an element. |
Type | Description |
---|---|
Ordering<T> | An IIndexedSource<T> whose elements are sorted according to a key. |
Name | Description |
---|---|
T | The type of the elements of source. |
TKey | The type of the key returned by keySelector. |