Wraps a comparator to sort absent values first, undefined ahead of null.
Null values are treated as less than any other value, and undefined values as less than null ones. All other values
are ordered by comparator, so it can safely assume that neither of its arguments is ever null or undefined.
Type Parameters
V
The type of values to compare (may include null/undefined)
Wraps a comparator to sort absent values first, undefined ahead of null.
Null values are treated as less than any other value, and undefined values as less than null ones. All other values are ordered by
comparator, so it can safely assume that neither of its arguments is ever null or undefined.