+import "JavaBuiltin" as Java\r
+\r
+importJava "org.simantics.scl.runtime.Lists" where\r
+ sortWith :: (a -> a -> Integer) -> [a] -> [a]\r
+\r
+//@JavaStaticMethod "org.simantics.scl.runtime.Lists.sortWith"\r
+//sortWith :: (a -> a -> Integer) -> [a] -> [a]\r
+\r
+\r
+//sortWith = Java.staticMethod "org.simantics.scl.runtime.Lists.sortWith"\r
+\r
+dumbCompare :: a -> a -> Integer\r
+dumbCompare x y = 0\r
+\r
+dumbSort = sortWith dumbCompare \r
+\r
+main = "Foo"\r
+--\r
+Foo
\ No newline at end of file