mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 16:32:39 +00:00
Fix alphabetical sorting bug caused by case-sensitive string comparisons in GameListFrame.
This commit is contained in:
parent
4bb578f9fb
commit
ce1b208fc5
@ -8,6 +8,7 @@
|
||||
#include <QNetworkRequest>
|
||||
#include <QPainter>
|
||||
#include <QScrollBar>
|
||||
#include <cctype> // std::tolower
|
||||
|
||||
#include "background_music_player.h"
|
||||
#include "compatibility_info.h"
|
||||
@ -66,7 +67,7 @@ public:
|
||||
static bool CompareStringsAscending(GameInfo a, GameInfo b, int columnIndex) {
|
||||
switch (columnIndex) {
|
||||
case 1:
|
||||
return a.name < b.name;
|
||||
return std::tolower(a.name) < std::tolower(b.name);
|
||||
case 2:
|
||||
return a.compatibility.status < b.compatibility.status;
|
||||
case 3:
|
||||
@ -91,7 +92,7 @@ public:
|
||||
static bool CompareStringsDescending(GameInfo a, GameInfo b, int columnIndex) {
|
||||
switch (columnIndex) {
|
||||
case 1:
|
||||
return a.name > b.name;
|
||||
return std::tolower(a.name) > std::tolower(b.name);
|
||||
case 2:
|
||||
return a.compatibility.status > b.compatibility.status;
|
||||
case 3:
|
||||
|
Loading…
Reference in New Issue
Block a user