We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 70e8ea4 + 937a023 commit 12139d4Copy full SHA for 12139d4
frontends/web/src/routes/account/utils.ts
@@ -112,7 +112,13 @@ export function getAccountsByKeystore(accounts: IAccount[]): TAccountsByKeystore
112
}
113
acc[key].accounts.push(account);
114
return acc;
115
- }, {} as Record<string, TAccountsByKeystore>));
+ }, {} as Record<string, TAccountsByKeystore>))
116
+ // sort the output array as we noticed that somehow the input accounts
117
+ // list seems to be possibly ordered differently in different places
118
+ // in the code (e.g. sidebar vs manage account page)
119
+ .sort((ac1, ac2) => {
120
+ return ac1.keystore.name.localeCompare(ac2.keystore.name);
121
+ });
122
123
124
// Returns true if more than one keystore has the given name.
0 commit comments