diff --git a/public/scripts/world-info.js b/public/scripts/world-info.js index 386be3685..c7a637461 100644 --- a/public/scripts/world-info.js +++ b/public/scripts/world-info.js @@ -274,7 +274,7 @@ function sortEntries(data) { // Sort numbers return orderSign * (Number(aValue) - Number(bValue)); }; - const secondarySort = (a, b) => b.order - a.order; + const secondarySort = (a, b) => a.order - b.order; const tertiarySort = (a, b) => a.uid - b.uid; data.sort((a, b) => { @@ -2010,7 +2010,7 @@ jQuery(() => { updateEditor(navigation_option.previous); }); - $('#world_info_sort_order').on('change', function(e) { + $('#world_info_sort_order').on('change', function (e) { if (e.target instanceof HTMLOptionElement) { localStorage.setItem(SORT_ORDER_KEY, e.target.value); }