Commit 1ed0850e by jay

filter config sorted

1 parent 6d3d8442
...@@ -333,12 +333,12 @@ module.exports = factories.createCoreController( ...@@ -333,12 +333,12 @@ module.exports = factories.createCoreController(
}, },
], ],
}, },
} }
); );
let finalProjects = []; let finalProjects = [];
let porjectConfiguration = []; let porjectConfiguration = [];
for (let j = 0; j < matchingProjects.length; j++) { for (let j = 0; j < matchingProjects.length; j++) {
const individualProject = matchingProjects[j]; const individualProject = matchingProjects[j];
...@@ -350,7 +350,9 @@ module.exports = factories.createCoreController( ...@@ -350,7 +350,9 @@ module.exports = factories.createCoreController(
function removeDuplicates(arr) { function removeDuplicates(arr) {
return arr.filter((item, index) => arr.indexOf(item) === index); return arr.filter((item, index) => arr.indexOf(item) === index);
} }
const finalArray = removeDuplicates(porjectConfiguration); const finalArray = removeDuplicates(porjectConfiguration).sort();
console.log("matchingProjects",finalArray);
// const matchingProjects = // const matchingProjects =
ctx.send({ ctx.send({
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!