3 importJava "java.util.Comparator" where
\r
5 A comparison function, which imposes a total ordering on some collection of objects
\r
11 Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
\r
13 compareWithComparator :: Comparator a -> a -> a -> Integer
\r
16 Sorts the list using the given comparator.
\r
18 sortWithComparator :: Comparator a -> [a] -> [a]
\r
19 sortWithComparator = sortWith . compareWithComparator