Sorts the elements of a sequence in descending order.
The source iterable.
An IOrderedEnumerable whose elements are sorted.
const items = [1, 3, 2];const ordered = orderDescending(items).toArray(); // Will be [3, 2, 1] Copy
const items = [1, 3, 2];const ordered = orderDescending(items).toArray(); // Will be [3, 2, 1]
TSource The type of the source iterable.
An Comparer to compare keys.
Sorts the elements of a sequence in descending order.