mirror of
https://github.com/Lissy93/dashy.git
synced 2026-08-01 03:57:03 -04:00
Update SortItems.js
Renamed itemID to item-id (to keep the lowercase-logic)
This commit is contained in:
committed by
GitHub
parent
02194a49c7
commit
8d874b8a01
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user