From 19acc05516fa5f0da5ee7a91390dd4054dd3d65a Mon Sep 17 00:00:00 2001 From: RossAscends <124905043+RossAscends@users.noreply.github.com> Date: Sun, 8 Oct 2023 20:12:14 +0900 Subject: [PATCH] subsort WI Depth sort by Order to match prompt loc --- public/scripts/world-info.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }