From 2e57ea908b712174d3b45cc1929f1260117dc68f Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Mon, 6 Dec 2021 18:26:21 +0000 Subject: [PATCH] :sparkles: Case-insensitive item sorting (#352) --- src/components/LinkItems/Section.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/LinkItems/Section.vue b/src/components/LinkItems/Section.vue index 6d197694..01dc0cfc 100644 --- a/src/components/LinkItems/Section.vue +++ b/src/components/LinkItems/Section.vue @@ -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) {