Skip to content

Commit 4301f84

Browse files
committed
fix: Account names should use natural sort order
1 parent 7c74b1c commit 4301f84

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/app/src/systems/Account/components/AccountList/AccountList.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@ export function AccountList({
3232
setShowHidden((s) => !s);
3333
}
3434

35+
const collator = new Intl.Collator(undefined, {
36+
numeric: true,
37+
sensitivity: "base"
38+
});
39+
40+
accounts = accounts.sort((a, b) => collator.compare(a, b));
41+
3542
return (
3643
<Box.Stack gap="$4">
3744
{isLoading && (

0 commit comments

Comments
 (0)