🔀 Merge pull request #354 from Lissy93/FEATURE/ignore-case-alphabetical-sort

[FEATURE] Case-insensitive item sorting
Fixes #352
This commit is contained in:
Alicia Sykes 2021-12-06 18:44:15 +00:00 committed by GitHub
commit fddf650e84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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) {