nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
auto_super_init: use CallSite
[nit.git]
/
src
/
model_utils.nit
diff --git
a/src/model_utils.nit
b/src/model_utils.nit
index
7bb9d2f
..
bc5ca17
100644
(file)
--- a/
src/model_utils.nit
+++ b/
src/model_utils.nit
@@
-246,6
+246,13
@@
class MClassNameSorter
init do end
end
init do end
end
+# Sort mclassdefs by their name
+class MClassDefNameSorter
+ super AbstractSorter[MClassDef]
+ redef fun compare(a, b) do return a.mclass.name <=> b.mclass.name
+ init do end
+end
+
# Sort mproperties by their name
class MPropertyNameSorter
super AbstractSorter[MProperty]
# Sort mproperties by their name
class MPropertyNameSorter
super AbstractSorter[MProperty]