fixed zoneLocation order
This commit is contained in:
parent
0ea161ff19
commit
813d7368f3
|
@ -118,13 +118,14 @@ module.exports = Self => {
|
|||
});
|
||||
|
||||
const sortedLeaves = parentNodes.sort((a, b) => {
|
||||
let priority = b.isIncluded - a.isIncluded;
|
||||
let priority = (b.isIncluded - a.isIncluded) - 1;
|
||||
|
||||
if (b.name > a.name)
|
||||
priority++;
|
||||
|
||||
return priority;
|
||||
});
|
||||
console.log(sortedLeaves);
|
||||
const leaves = Object.assign([], sortedLeaves);
|
||||
|
||||
nestLeaves(leaves);
|
||||
|
|
Loading…
Reference in New Issue