diff --git a/anki/sched.py b/anki/sched.py index 364a168a2..02644a4a1 100644 --- a/anki/sched.py +++ b/anki/sched.py @@ -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):