[Bugfix] 修复 TreeNode bug

This commit is contained in:
BaiJiangJie
2019-10-18 15:23:46 +08:00
parent e5250294b0
commit a6531fedb5

View File

@@ -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