mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-20 01:12:15 -07:00
Flip preference sort so descending means "Most to least preferred".
This commit is contained in:
parent
70c2bd6377
commit
7a136178e0
1 changed files with 1 additions and 0 deletions
|
|
@ -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());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue