Reverses the order of a comparator.
The reversal applies to every value, so null and undefined values placed first by comparator are placed last, and the reverse. Wrapping the reversed comparator in absent or present keeps them at a fixed end.
comparator
The type of values to compare
Comparator to reverse
A comparator producing the opposite ordering
Reverses the order of a comparator.
The reversal applies to every value, so null and undefined values placed first by
comparatorare placed last, and the reverse. Wrapping the reversed comparator in absent or present keeps them at a fixed end.