--- /dev/null
+import "Prelude"\r
+\r
+importJava "java.util.Comparator" where\r
+ """\r
+ A comparison function, which imposes a total ordering on some collection of objects\r
+ """\r
+ data Comparator a\r
+ \r
+ @JavaName compare\r
+ """\r
+ 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
+ """\r
+ compareWithComparator :: Comparator a -> a -> a -> Integer\r
+\r
+"""\r
+Sorts the list using the given comparator.\r
+"""\r
+sortWithComparator :: Comparator a -> [a] -> [a]\r
+sortWithComparator = sortWith . compareWithComparator
\ No newline at end of file