Ensure account ordering are sorted accending by their persistantId

This commit is contained in:
SIrHrVedel 2026-04-27 16:48:34 +02:00
parent 88f2e06328
commit 0fbee649a1

View File

@ -331,6 +331,11 @@ const std::vector<Account>& Account::RefreshAccounts()
result.begin()->Save();
}
std::sort(result.begin(), result.end(), [](const Account& a, const Account& b)
{
return a.GetPersistentId() < b.GetPersistentId();
});
s_account_list = result;
UpdatePersisidDat();
return s_account_list;