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'); }); }