From f8bd60ceecf27d4015b925df2fb086a996af95d0 Mon Sep 17 00:00:00 2001 From: Leon Styhre <leon@leonstyhre.com> Date: Mon, 4 Apr 2022 23:18:10 +0200 Subject: [PATCH] Fixed an issue where the game systems were not sorted correctly. --- es-app/src/SystemData.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/es-app/src/SystemData.cpp b/es-app/src/SystemData.cpp index 447a740ab..0e64fa4d2 100644 --- a/es-app/src/SystemData.cpp +++ b/es-app/src/SystemData.cpp @@ -656,8 +656,9 @@ bool SystemData::loadConfig() } // Sort systems by sortName, which will normally be the same as the full name. - std::sort(std::begin(sSystemVector), std::end(sSystemVector), - [](SystemData* a, SystemData* b) { return a->getSortName() < b->getSortName(); }); + std::sort(std::begin(sSystemVector), std::end(sSystemVector), [](SystemData* a, SystemData* b) { + return Utils::String::toUpper(a->getSortName()) < Utils::String::toUpper(b->getSortName()); + }); // Don't load any collections if there are no systems available. if (sSystemVector.size() > 0)