Qt: Fix a couple of instances of inconsistent sorting

This commit is contained in:
Stenzek
2024-07-03 17:36:08 +10:00
parent 63b30e2925
commit 7927ec647f
6 changed files with 46 additions and 16 deletions

View File

@ -204,7 +204,7 @@ std::vector<std::pair<std::string, std::string>> PostProcessing::GetAvailableSha
std::sort(names.begin(), names.end(),
[](const std::pair<std::string, std::string>& lhs, const std::pair<std::string, std::string>& rhs) {
return (lhs.first < lhs.second);
return (StringUtil::Strcasecmp(lhs.first.c_str(), rhs.first.c_str()) < 0);
});
return names;