From 966cce1581f92313bbc44be182a4b120a547bd30 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sun, 23 Jun 2024 13:20:43 +1000 Subject: [PATCH] Postprocessing: Sort shader list lexiographically --- src/util/postprocessing.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/util/postprocessing.cpp b/src/util/postprocessing.cpp index 070d52b4c..398a79621 100644 --- a/src/util/postprocessing.cpp +++ b/src/util/postprocessing.cpp @@ -205,6 +205,11 @@ std::vector> PostProcessing::GetAvailableSha } } + std::sort(names.begin(), names.end(), + [](const std::pair& lhs, const std::pair& rhs) { + return (lhs.first < lhs.second); + }); + return names; }