nitc :: MEntityComparator :: defaultinit
# Compare two matches by their MEntity kind
#
# Usefull to order the mentities by kind in this order:
# packages, groups, modules and classes, properties.
class MEntityComparator
super ScoreComparator
# See `MEntity::compare_mentity`
redef fun compare(o1, o2) do
return o1.mentity.mentity_kind_rank <=> o2.mentity.mentity_kind_rank
end
end
src/model/model_index.nit:584,1--595,3