##// END OF EJS Templates
nodes: make submodules sorting be equal to Directory
ergo -
r3470:5fd6f678 default
parent child Browse files
Show More
@@ -200,8 +200,12 b' class Node(object):'
200 200 """
201 201 Comparator using name of the node, needed for quick list sorting.
202 202 """
203
203 204 kind_cmp = cmp(self.kind, other.kind)
204 205 if kind_cmp:
206 if isinstance(self, SubModuleNode):
207 # we make submodules equal to dirnode for "sorting" purposes
208 return NodeKind.DIR
205 209 return kind_cmp
206 210 return cmp(self.name, other.name)
207 211
General Comments 0
You need to be logged in to leave comments. Login now