fix new cards not appearing in correct order in v3

This was broken by an SQLite upgrade - previously we received the rows
in ix_cards_sched order, but recent versions use a table scan for that
query when the order is unspecified. Solved by being explicit about the
order we expect results to arrive.

https://forums.ankiweb.net/t/skipping-new-cards/15410
This commit is contained in:
Damien Elmes 2021-12-02 17:20:48 +10:00
parent 7fcb8cbb62
commit 9daa0c9acb

View File

@ -6,4 +6,7 @@ SELECT id,
odid odid
FROM cards FROM cards
WHERE did = ? WHERE did = ?
AND queue = 0 AND queue = 0
ORDER BY did,
queue,
due