mirror of https://github.com/Lissy93/dashy.git
🔀 Merge pull request #354 from Lissy93/FEATURE/ignore-case-alphabetical-sort
[FEATURE] Case-insensitive item sorting Fixes #352
This commit is contained in:
commit
fddf650e84
|
@ -195,7 +195,7 @@ export default {
|
||||||
},
|
},
|
||||||
/* Sorts items alphabetically using the title attribute */
|
/* Sorts items alphabetically using the title attribute */
|
||||||
sortAlphabetically(items) {
|
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 */
|
/* Sorts items by most used to least used, based on click-count */
|
||||||
sortByMostUsed(items) {
|
sortByMostUsed(items) {
|
||||||
|
|
Loading…
Reference in New Issue