mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-07-09 17:14:47 -06:00
Ensure account ordering are sorted accending by their persistantId
This commit is contained in:
parent
88f2e06328
commit
0fbee649a1
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user