Skip to content

Commit

Permalink
chore: update based on pr comments
Browse files Browse the repository at this point in the history
Co-authored-by: Lubos <lmenus@lmen.us>
  • Loading branch information
jordanshatford and mrlubos authored Mar 18, 2024
1 parent 04e007d commit f120aaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/sortByName.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export function sortByName<T extends { name: string }>(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');
});
}

0 comments on commit f120aaf

Please sign in to comment.