Forgive/pokemon-online — comment on commit d6dec4192cde1cb59b702a6b7c33b424cf91fa7d
File:  line 0
By coyotte508:

no.

.compare() returns -1, 0 or 1.

And the point is to not use QDate::currendDate() everytime.

QString limit = QDate::currentDate().addDays(-maxdays).toString("yyyy-MM-dd")

while (q.value(1).toString().compare(limit) < 0).

And yea, the order by laston asc is correct :)