mirror of
https://github.com/Lissy93/dashy.git
synced 2025-04-08 17:06:18 +02:00
✨ Case-insensitive item sorting (#352)
This commit is contained in:
parent
4d9e36cf7a
commit
2e57ea908b
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user