Merge pull request #332 from Arthur-Milchior/sortEase

when sorting by easiness, put new card separately
This commit is contained in:
Damien Elmes 2019-09-23 14:18:04 +10:00 committed by GitHub
commit df3314ff79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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":