|
@@ -279,9 +279,9 @@ class ImportBaseTree {
|
|
|
const splitChar = this.splitChar;
|
|
|
const firstPart = this.roots[0];
|
|
|
firstPart.children.sort(function (a, b) {
|
|
|
- if (a.code === '') {
|
|
|
+ if (!a.code) {
|
|
|
return 1;
|
|
|
- } else if (b.code === '') {
|
|
|
+ } else if (!b.code) {
|
|
|
return -1;
|
|
|
}
|
|
|
const codeA = a.code.split(splitChar);
|