Type to represent a function that takes two items and returns a number to
determine their order. If the result is negative, the first item is sorted
before the second item. If the result is positive, the first item is sorted
after the second item. If the result is zero, the order of the items is
unchanged.
Curried sorter Unary function.
Remarks
Type to represent a function that takes two items and returns a number to determine their order. If the result is negative, the first item is sorted before the second item. If the result is positive, the first item is sorted after the second item. If the result is zero, the order of the items is unchanged.
Example
See