Properties in dropdowns are sorted by order again, rather than name

This commit is contained in:
Thaum Rystra
2020-05-28 15:59:04 +02:00
parent 868b9e11fa
commit edf68b1355

View File

@@ -15,7 +15,7 @@ export default function createListOfProperties(filter = {}){
});
}
}
let options = {sort: {variableName: 1}}
let options = {sort: {order: 1, variableName: 1}}
CreatureProperties.find(filter, options).forEach(addUniquePropertys);
LibraryNodes.find(filter, options).forEach(addUniquePropertys);
return Array.from(variableNames);