Unverified Commit 491f5902 authored by BaiJiangJie's avatar BaiJiangJie Committed by GitHub

Merge pull request #3356 from jumpserver/dev_tree

[Bugfix] 修复 TreeNode bug
parents e5250294 a6531fed
......@@ -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
......
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