mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-14 08:12:16 +00:00
Fix game title sorting - Grid view (#2341)
This commit is contained in:
parent
8ad650582a
commit
97441b62d1
1 changed files with 5 additions and 2 deletions
|
@ -19,7 +19,10 @@ public:
|
||||||
QVector<GameInfo> m_games;
|
QVector<GameInfo> m_games;
|
||||||
|
|
||||||
static bool CompareStrings(GameInfo& a, GameInfo& b) {
|
static bool CompareStrings(GameInfo& a, GameInfo& b) {
|
||||||
return a.name < b.name;
|
std::string name_a = a.name, name_b = b.name;
|
||||||
|
std::transform(name_a.begin(), name_a.end(), name_a.begin(), ::tolower);
|
||||||
|
std::transform(name_b.begin(), name_b.end(), name_b.begin(), ::tolower);
|
||||||
|
return name_a < name_b;
|
||||||
}
|
}
|
||||||
|
|
||||||
static GameInfo readGameInfo(const std::filesystem::path& filePath) {
|
static GameInfo readGameInfo(const std::filesystem::path& filePath) {
|
||||||
|
@ -72,4 +75,4 @@ public:
|
||||||
}
|
}
|
||||||
return game;
|
return game;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue