Skip to content

Commit

Permalink
feat: localeCompare numeric
Browse files Browse the repository at this point in the history
  • Loading branch information
dmy147 committed Sep 13, 2023
1 parent 785a325 commit 3020fce
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ui/views/AddressManagement/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,11 @@ const AddressManagement = () => {
}
if (addressSortStore.sortType === 'alphabet') {
return [
normalAccounts.sort((a, b) => a.alianName.localeCompare(b.alianName)),
normalAccounts.sort((a, b) =>
a.alianName.localeCompare(b.alianName, undefined, { numeric: true })
),
watchModeAccounts.sort((a, b) =>
a.alianName.localeCompare(b.alianName)
a.alianName.localeCompare(b.alianName, undefined, { numeric: true })
),
];
}
Expand Down

0 comments on commit 3020fce

Please sign in to comment.