From 0fbee649a1a55c3b37120b25ea2c4eb87d02c6ea Mon Sep 17 00:00:00 2001 From: SIrHrVedel <38987957+SirHrVedel@users.noreply.github.com> Date: Mon, 27 Apr 2026 16:48:34 +0200 Subject: [PATCH] Ensure account ordering are sorted accending by their persistantId --- src/Cafe/Account/Account.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Cafe/Account/Account.cpp b/src/Cafe/Account/Account.cpp index 09f667d7..b22cf274 100644 --- a/src/Cafe/Account/Account.cpp +++ b/src/Cafe/Account/Account.cpp @@ -331,6 +331,11 @@ const std::vector& 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;