Commits

Georg Brandl committed e55c174 Merge

Merged in minrk/sphinx/minrk/sort-inheritance-diagram (pull request #183)

sort class items in inheritance_diagram

  • Participants
  • Parent commits 265bba1, b0cdb6c

Comments (0)

Files changed (1)

sphinx/ext/inheritance_diagram.py

         res.append('digraph %s {\n' % name)
         res.append(self._format_graph_attrs(g_attrs))
 
-        for cls, (name, fullname, bases) in self.class_info.items():
+        for cls, (name, fullname, bases) in sorted(self.class_info.items()):
             # Write the node
             this_node_attrs = n_attrs.copy()
             if fullname in urls: