mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-30 03:55:40 +00:00
Fixed an issue where the game systems were not sorted correctly.
This commit is contained in:
parent
8666590fcf
commit
f8bd60ceec
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue