mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-21 01:42:15 -07:00
minor fixes
This commit is contained in:
parent
c54c677e5a
commit
90ab477976
1 changed files with 1 additions and 1 deletions
|
|
@ -210,8 +210,8 @@ void SetList::guessSortKeys()
|
||||||
|
|
||||||
void SetList::defaultSort()
|
void SetList::defaultSort()
|
||||||
{
|
{
|
||||||
|
static const QDate distantPast = QDate(1970, 1, 1);
|
||||||
std::sort(begin(), end(), [](const CardSetPtr &a, const CardSetPtr &b) {
|
std::sort(begin(), end(), [](const CardSetPtr &a, const CardSetPtr &b) {
|
||||||
QDate distantPast = QDate(1970, 1, 1);
|
|
||||||
QDate aDate = a->getReleaseDate().isValid() ? a->getReleaseDate() : distantPast;
|
QDate aDate = a->getReleaseDate().isValid() ? a->getReleaseDate() : distantPast;
|
||||||
QDate bDate = b->getReleaseDate().isValid() ? b->getReleaseDate() : distantPast;
|
QDate bDate = b->getReleaseDate().isValid() ? b->getReleaseDate() : distantPast;
|
||||||
CardSet::Priority aPriority = a->getPriority() ? a->getPriority() : CardSet::PriorityFallback;
|
CardSet::Priority aPriority = a->getPriority() ? a->getPriority() : CardSet::PriorityFallback;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue