Update SortItems.js

Renamed itemID to item-id (to keep the lowercase-logic)
This commit is contained in:
hypermagicmountain
2026-07-24 11:50:53 +00:00
committed by GitHub
parent 02194a49c7
commit 8d874b8a01

View File

@@ -40,8 +40,8 @@ export default function sortItems(items, order, sectionTitle = '') {
if (ord === 'random') return shuffled(list);
if (ord === 'provider') return byProvider(list);
if (ord === 'provider-reverse') return byProvider(list).reverse();
if (ord === 'itemID') return byID(list);
if (ord === 'itemID-reverse') return byID(list).reverse();
if (ord === 'item-id') return byID(list);
if (ord === 'item-id-reverse') return byID(list).reverse();
ErrorHandler(`Unknown Sort order '${ord}'${sectionTitle ? ` under '${sectionTitle}'` : ''}`);
return list;
}