✨ Case-insensitive item sorting (#352)
This commit is contained in:
committed by
Alicia Sykes
parent
4d9e36cf7a
commit
2e57ea908b
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user