xiaq  committed 95101fe

fix ordering of RegistryContent.Entry

  • Participants
  • Parent commits b97f0a3
  • Branches default

Comments (0)

Files changed (1)

File MoinMoin/items/

         def __lt__(self, other):
             if isinstance(other, self.__class__):
-                return (self.content_type, self.priority) < (other.content_type, other.priority)
+                # Within the registry, content_type is sorted in descending
+                # order (more specific first) while priority is in ascending
+                # order (smaller first).
+                return (other.content_type, self.priority) < (self.content_type, other.priority)
             return NotImplemented
     def __init__(self, group_names):