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