Ordering Utilities
Functions for creating comparators used in sort
and groupBy
. Comparators are universal (a, b) => number
.
#
ascasc(comparator, selector) => Comparator
Used itself as a value for specifying ascending sorting direction, or as a factory function for building orders for orderBy
.
#
composeComparatorscomposeComparators(comparators) => Comparator
Composes several comparators into one.
#
descdesc(comparator, selector) => Comparator
Used itself as a value for specifying descending sorting direction, or as a factory function for building orders for orderBy
.