ensure we return cards in created order when sorting

This commit is contained in:
Damien Elmes 2012-08-23 17:07:41 +09:00
parent 6c1239ee9c
commit bcb9b53368

View file

@ -1269,7 +1269,7 @@ and due >= ? and queue = 0""" % scids, now, self.col.usn(), shiftby, low)
self.sortCards(cids, shuffle=True)
def orderCards(self, did):
cids = self.col.db.list("select id from cards where did = ?", did)
cids = self.col.db.list("select id from cards where did = ? order by id", did)
self.sortCards(cids)
def resortConf(self, conf):