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!

:sparkles: Case-insensitive item sorting (#352)

Alicia Sykes2e57ea908b71
diff --git a/src/components/LinkItems/Section.vue b/src/components/LinkItems/Section.vue
index 6d197694..01dc0cfc 100644
--- a/src/components/LinkItems/Section.vue
+++ b/src/components/LinkItems/Section.vue
@@ -195,7 +195,7 @@ export default {
},
/* Sorts items alphabetically using the title attribute */
sortAlphabetically(items) {
- return items.sort((a, b) => (a.title > b.title ? 1 : -1));
+ return items.sort((a, b) => (a.title.toLowerCase() > b.title.toLowerCase() ? 1 : -1));
},
/* Sorts items by most used to least used, based on click-count */
sortByMostUsed(items) {