From edf68b1355f8b550e544bd7e0a627a002432bfaf Mon Sep 17 00:00:00 2001 From: Thaum Rystra Date: Thu, 28 May 2020 15:59:04 +0200 Subject: [PATCH] Properties in dropdowns are sorted by order again, rather than name --- .../ui/properties/forms/shared/lists/createListOfProperties.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/imports/ui/properties/forms/shared/lists/createListOfProperties.js b/app/imports/ui/properties/forms/shared/lists/createListOfProperties.js index 7d9bac89..7f8ce491 100644 --- a/app/imports/ui/properties/forms/shared/lists/createListOfProperties.js +++ b/app/imports/ui/properties/forms/shared/lists/createListOfProperties.js @@ -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);