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