subsort WI Depth sort by Order to match prompt loc

This commit is contained in:
RossAscends 2023-10-08 20:12:14 +09:00
parent 2cbde8b55c
commit 19acc05516
1 changed files with 2 additions and 2 deletions

View File

@ -274,7 +274,7 @@ function sortEntries(data) {
// Sort numbers // Sort numbers
return orderSign * (Number(aValue) - Number(bValue)); 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; const tertiarySort = (a, b) => a.uid - b.uid;
data.sort((a, b) => { data.sort((a, b) => {
@ -2010,7 +2010,7 @@ jQuery(() => {
updateEditor(navigation_option.previous); 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) { if (e.target instanceof HTMLOptionElement) {
localStorage.setItem(SORT_ORDER_KEY, e.target.value); localStorage.setItem(SORT_ORDER_KEY, e.target.value);
} }