when sorting by easiness, put new card separately

This commit is contained in:
Arthur Milchior 2019-09-18 16:58:29 +02:00
parent d4aa146b4c
commit 61d7c0b5d9

View File

@ -228,7 +228,7 @@ select distinct(n.id) from cards c, notes n where c.nid=n.id and """+preds
elif type == "cardDue": elif type == "cardDue":
sort = "c.type, c.due" sort = "c.type, c.due"
elif type == "cardEase": elif type == "cardEase":
sort = "c.factor" sort = "c.type == 0, c.factor"
elif type == "cardLapses": elif type == "cardLapses":
sort = "c.lapses" sort = "c.lapses"
elif type == "cardIvl": elif type == "cardIvl":