Flip preference sort so descending means "Most to least preferred".

This commit is contained in:
Lukas Brübach 2024-12-01 13:00:53 +01:00 committed by ZeldaZach
parent 70c2bd6377
commit 7a136178e0
No known key found for this signature in database

View file

@ -257,6 +257,7 @@ QList<CardInfoPerSet> 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());
}