Sort accounts

This commit is contained in:
Rodolphe Bréard 2023-07-30 20:43:19 +02:00
parent 34620f1747
commit 7ef39ec734

View file

@ -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('');