fix new cards not being shown in new order

This commit is contained in:
Damien Elmes 2013-11-01 17:32:02 +09:00
parent 32147b2d76
commit 1f3a57104c

View File

@ -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