From f8230c200ca700f7533d1c487801a96e4c80f5de Mon Sep 17 00:00:00 2001 From: WisoAltred Date: Tue, 18 Aug 2026 14:00:39 +0300 Subject: [PATCH] Add sort --- src/evidence.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/evidence.cpp b/src/evidence.cpp index aab7c8c74..fe206f38a 100644 --- a/src/evidence.cpp +++ b/src/evidence.cpp @@ -864,7 +864,9 @@ void Courtroom::evidence_load(QString filename) inventory.setIniCodec("UTF-8"); #endif private_evidence_list.clear(); - foreach (QString evi, inventory.childGroups()) + QStringList sortedInventory = inventory.childGroups(); + std::sort(sortedInventory.begin(), sortedInventory.end(), [](const QString &a, const QString &b) { return a.toInt() < b.toInt(); }); + foreach (QString evi, sortedInventory) { if (evi == "General") {