Sort accounts
This commit is contained in:
parent
34620f1747
commit
7ef39ec734
1 changed files with 5 additions and 0 deletions
|
@ -8,6 +8,11 @@ import base32Encode from 'base32-encode';
|
|||
|
||||
const router = useRouter();
|
||||
const accounts = useStorage('sake-accounts', []);
|
||||
accounts.value.sort((a, b) => {
|
||||
const va = `${a.localPart}@${a.domain}`;
|
||||
const vb = `${b.localPart}@${b.domain}`;
|
||||
return va.localeCompare(vb);
|
||||
});
|
||||
const selectedAccountId = ref(accounts.value[0].id);
|
||||
const subAddrName = ref('');
|
||||
|
||||
|
|
Loading…
Reference in a new issue