Skip to content
Snippets Groups Projects
Commit 8fa062a5 authored by Victor Picussa's avatar Victor Picussa
Browse files

Region id order

parent b937e515
No related branches found
No related tags found
1 merge request!257V1.14.0
Pipeline #23242 failed
......@@ -72,7 +72,7 @@ module.exports = function addMissing(rqf) {
}
if (dimsValues[rqfName].indexOf(r[rqfName]) === -1) {
if (['school', 'city', 'state', 'region', 'arrangement'].includes(dim)) { // those should be ordered by its name
if (['school', 'city', 'state', 'arrangement'].includes(dim)) { // those should be ordered by its name
let namePosition = binarySearch(r[secondaryRqfName], dimsNames[secondaryRqfName], 0, dimsNames[secondaryRqfName].length) // find the position of the name in alphabetical order and keep the names vector ordered
dimsValues[rqfName].splice(namePosition.pos, 0, r[rqfName]);
dimsNames[secondaryRqfName].splice(namePosition.pos, 0, r[secondaryRqfName]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment