Case-insensitive item sorting (#352)

This commit is contained in:
Alicia Sykes 2021-12-06 18:26:21 +00:00 committed by Alicia Sykes
parent 4d9e36cf7a
commit 2e57ea908b
1 changed files with 1 additions and 1 deletions

View File

@ -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) {