The source iterable.
Sorts the elements of a sequence in descending order.
const items = [1, 3, 2];
const ordered = orderDescending(items).toArray(); // Will be [3, 2, 1]
TSource The type of the source iterable.
An IOrderedEnumerable
The source iterable.
An Comparer
Generated using TypeDoc
Sorts the elements of a sequence in descending order.
Example
Typeparam
TSource The type of the source iterable.
Returns
An IOrderedEnumerable whose elements are sorted.