descend
Creates a descending comparator from an accessor function.
Usage
descend<T>(fn: (value: T) => number | string)
Creates a descending comparator from an accessor function.
Parameters
fn(value: T) => number | stringrequired
the function to apply.
Returns
a descending comparator suitable for Array.prototype.sort or toSorted.