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) => {
|
const sortedLeaves = parentNodes.sort((a, b) => {
|
||||||
let priority = b.isIncluded - a.isIncluded;
|
let priority = (b.isIncluded - a.isIncluded) - 1;
|
||||||
|
|
||||||
if (b.name > a.name)
|
if (b.name > a.name)
|
||||||
priority++;
|
priority++;
|
||||||
|
|
||||||
return priority;
|
return priority;
|
||||||
});
|
});
|
||||||
|
console.log(sortedLeaves);
|
||||||
const leaves = Object.assign([], sortedLeaves);
|
const leaves = Object.assign([], sortedLeaves);
|
||||||
|
|
||||||
nestLeaves(leaves);
|
nestLeaves(leaves);
|
||||||
|
|
Loading…
Reference in New Issue