mirror of https://github.com/jumpserver/jumpserver
commit
491f59026c
|
@ -51,7 +51,7 @@ class TreeNode:
|
|||
result = True
|
||||
elif self.pId != other.pId:
|
||||
result = self.pId > other.pId
|
||||
elif self.id.startswith('-') and not other.id.startswith('-'):
|
||||
elif str(self.id).startswith('-') and not str(other.id).startswith('-'):
|
||||
result = False
|
||||
else:
|
||||
result = self.name > other.name
|
||||
|
|
Loading…
Reference in New Issue