diff --git a/front/core/components/treeview/index.js b/front/core/components/treeview/index.js index ae7489147..a71a3a342 100644 --- a/front/core/components/treeview/index.js +++ b/front/core/components/treeview/index.js @@ -67,7 +67,7 @@ export default class Treeview extends Component { } item.childs = newData.sort((a, b) => { - let priority = b.isIncluded - a.isIncluded; + let priority = (b.isIncluded - a.isIncluded) - 1; if (b.name > a.name) priority++; diff --git a/modules/agency/back/methods/zone-geo/getLeaves.js b/modules/agency/back/methods/zone-geo/getLeaves.js index b7061ef26..631286465 100644 --- a/modules/agency/back/methods/zone-geo/getLeaves.js +++ b/modules/agency/back/methods/zone-geo/getLeaves.js @@ -125,7 +125,6 @@ module.exports = Self => { return priority; }); - console.log(sortedLeaves); const leaves = Object.assign([], sortedLeaves); nestLeaves(leaves);