[]
Sorts the elements of a collection in descending order.
public static Ordering<T> OrderByDescending<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 in descending order according to a key. |
| Name | Description |
|---|---|
| T | The type of the elements of source. |
| TKey | The type of the key returned by keySelector. |