subsort WI Depth sort by Order to match prompt loc
This commit is contained in:
parent
2cbde8b55c
commit
19acc05516
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue