From 7a136178e028f04476e6f5868ea6f717390fd875 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Br=C3=BCbach?= Date: Sun, 1 Dec 2024 13:00:53 +0100 Subject: [PATCH] Flip preference sort so descending means "Most to least preferred". --- .../client/ui/widgets/printing_selector/printing_selector.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/cockatrice/src/client/ui/widgets/printing_selector/printing_selector.cpp b/cockatrice/src/client/ui/widgets/printing_selector/printing_selector.cpp index feb30f904..9a3be4896 100644 --- a/cockatrice/src/client/ui/widgets/printing_selector/printing_selector.cpp +++ b/cockatrice/src/client/ui/widgets/printing_selector/printing_selector.cpp @@ -257,6 +257,7 @@ QList PrintingSelector::sortSets() if (sortOptionsSelector->currentText() == SORT_OPTIONS_PREFERENCE) { std::sort(sortedSets.begin(), sortedSets.end(), SetPriorityComparator()); + std::reverse(sortedSets.begin(), sortedSets.end()); } else if (sortOptionsSelector->currentText() == SORT_OPTIONS_RELEASE_DATE) { std::sort(sortedSets.begin(), sortedSets.end(), SetReleaseDateComparator()); }