From 1f3a57104cf7551474a4778692bb59c42fe94636 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 1 Nov 2013 17:32:02 +0900 Subject: [PATCH] fix new cards not being shown in new order --- anki/sched.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anki/sched.py b/anki/sched.py index 8562cd34d..790a494bf 100644 --- a/anki/sched.py +++ b/anki/sched.py @@ -362,7 +362,7 @@ did = ? and queue = 0 limit ?)""", did, lim) if lim: # fill the queue with the current did self._newQueue = self.col.db.list(""" -select id from cards where did = ? and queue = 0 limit ?""", did, lim) +select id from cards where did = ? and queue = 0 order by due limit ?""", did, lim) if self._newQueue: self._newQueue.reverse() return True