From f120aaf3daf1a07379fc1a1e1f13a9d03a6cb653 Mon Sep 17 00:00:00 2001 From: Jordan Shatford <37837288+jordanshatford@users.noreply.github.com> Date: Mon, 18 Mar 2024 16:22:33 +1100 Subject: [PATCH] chore: update based on pr comments Co-authored-by: Lubos --- src/utils/sortByName.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/sortByName.ts b/src/utils/sortByName.ts index ba04f5c67..2e8b050a9 100644 --- a/src/utils/sortByName.ts +++ b/src/utils/sortByName.ts @@ -1,7 +1,7 @@ export function sortByName(items: T[]): T[] { return items.sort((a, b) => { - const nameA = a.name.toLowerCase(); - const nameB = b.name.toLowerCase(); + const nameA = a.name.toLocaleLowerCase(); + const nameB = b.name.toLocaleLowerCase(); return nameA.localeCompare(nameB, 'en'); }); }