3 importJava "java.util.Comparator" where
5 A comparison function, which imposes a total ordering on some collection of objects
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.
13 compareWithComparator :: Comparator a -> a -> a -> Integer
16 Sorts the list using the given comparator.
18 sortWithComparator :: Comparator a -> [a] -> [a]
19 sortWithComparator = sortWith . compareWithComparator