fixed zoneLocation order

This commit is contained in:
Joan Sanchez 2019-02-18 13:37:36 +01:00
parent 0ea161ff19
commit 813d7368f3
1 changed files with 2 additions and 1 deletions

View File

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