lib: new API for Comparator
[nit.git] / lib / ordered_tree.nit
index f6cd69a..91f8e63 100644 (file)
@@ -80,7 +80,7 @@ class OrderedTree[E: Object]
 
        # Sort roots and other elements using a comparator method
        # This method basically sorts roots then each group of children
-       fun sort_with(comparator: Comparator[E])
+       fun sort_with(comparator: Comparator)
        do
                comparator.sort(roots)
                for a in sub.values do