[Update] 修改排序节点排序规则

pull/2683/head
ibuler 6 years ago
parent 497cba6b13
commit 20ce5d11a6

@ -49,10 +49,7 @@ class Node(OrgModelMixin):
if self_parent_key == other_parent_key: if self_parent_key == other_parent_key:
return self.name > other.name return self.name > other.name
if self_key != other_key: return self_key > other_key
return self_key > other_key
else:
return self.name > other.name
def __lt__(self, other): def __lt__(self, other):
return not self.__gt__(other) return not self.__gt__(other)

Loading…
Cancel
Save