Postprocessing: Sort shader list lexiographically

This commit is contained in:
Stenzek 2024-06-23 13:20:43 +10:00
parent ea3fa7fe3d
commit 966cce1581
No known key found for this signature in database
1 changed files with 5 additions and 0 deletions

View File

@ -205,6 +205,11 @@ 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 names;
}