From 8ffd0950d02d8efb94a54eda9071e328355b1172 Mon Sep 17 00:00:00 2001 From: tarant28 Date: Tue, 3 Mar 2026 11:42:33 +0000 Subject: [PATCH] Added .toLowerCase() to two lines in profiles.js added two lines in profileSort() to mean that capitalisation does not take priority over alphabetical order --- src/renderer/store/modules/profiles.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/store/modules/profiles.js b/src/renderer/store/modules/profiles.js index 11aee2a60f6ba..c4729342e1b31 100644 --- a/src/renderer/store/modules/profiles.js +++ b/src/renderer/store/modules/profiles.js @@ -41,8 +41,8 @@ const getters = { function profileSort(a, b) { if (a._id === MAIN_PROFILE_ID) return -1 if (b._id === MAIN_PROFILE_ID) return 1 - if (a.name < b.name) return -1 - if (a.name > b.name) return 1 + if (a.name.toLowerCase() < b.name.toLowerCase()) return -1 + if (a.name.toLowerCase() > b.name.toLowerCase()) return 1 return 0 }