end
end
- var alpha_comparator = new AlphaComparator
-
var linex_comparator: nullable LinexComparator = null
# Sort modules and groups with their names
end
end
-# Just compare objects by using the `to_s` method
-private class AlphaComparator
- super AbstractSorter[Object]
- redef fun compare(a,b) do return a.to_s <=> b.to_s
-end
-
# Compare modules and groups using the
# FIXME do not use Object, but a better common interface of MModule and MGroup
private class LinexComparator