Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

Update SortItems.js

hypermagicmountain8d874b8a01f6
diff --git a/src/utils/SortItems.js b/src/utils/SortItems.js
index 3d012348..ff7f7288 100644
--- a/src/utils/SortItems.js
+++ b/src/utils/SortItems.js
@@ -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;
}