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

Removed ordenation for location, yeah i know

parent 9e1dcdea
No related branches found
No related tags found
1 merge request!257V1.14.0
Pipeline #23296 passed
......@@ -72,7 +72,7 @@ module.exports = function addMissing(rqf) {
}
if (dimsValues[rqfName].indexOf(r[rqfName]) === -1) {
if (['school', 'city', 'state', 'arrangement'].includes(dim)) { // those should be ordered by its name
if (['school', '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.
Finish editing this message first!
Please register or to comment