Skip to content

Commit 632a911

Browse files
treeView sort fix
1 parent ec84e63 commit 632a911

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/js/ClassTree.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ ClassTree.prototype.updateTree = function (treeObject) {
7676
}
7777

7878
arr.sort(function (a, b) {
79-
if (typeof a.val !== typeof b.val) return typeof a.val === "object" ? 0 : 1;
79+
if (typeof a.val !== typeof b.val) return typeof a.val === "object" ? -1 : 1;
8080
return a.name > b.name ? 1 : -1;
8181
});
8282

0 commit comments

Comments
 (0)