Unverified Commit 74ae7d13 authored by 老广's avatar 老广 Committed by GitHub

Merge pull request #2683 from jumpserver/dev

[Update] 修改排序节点排序规则
parents cbe919c4 20ce5d11
......@@ -49,10 +49,7 @@ class Node(OrgModelMixin):
if self_parent_key == other_parent_key:
return self.name > other.name
if self_key != other_key:
return self_key > other_key
else:
return self.name > other.name
def __lt__(self, other):
return not self.__gt__(other)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment