mirror of
https://github.com/ankitects/anki.git
synced 2025-11-11 07:07:13 -05:00
sort due in filtered decks by ordinal, like normal review
https://anki.tenderapp.com/discussions/ankidesktop/37419-card-order-of-siblings-not-preserved-in-filtered-deck#comment_47910714
This commit is contained in:
parent
bb62a3c1af
commit
7f2fecb944
1 changed files with 2 additions and 5 deletions
|
|
@ -1056,14 +1056,11 @@ due = (case when odue>0 then odue else due end), odue = 0, odid = 0, usn = ? whe
|
||||||
t = "n.id"
|
t = "n.id"
|
||||||
elif o == DYN_REVADDED:
|
elif o == DYN_REVADDED:
|
||||||
t = "n.id desc"
|
t = "n.id desc"
|
||||||
elif o == DYN_DUE:
|
|
||||||
t = "c.due"
|
|
||||||
elif o == DYN_DUEPRIORITY:
|
elif o == DYN_DUEPRIORITY:
|
||||||
t = "(case when queue=2 and due <= %d then (ivl / cast(%d-due+0.001 as real)) else 100000+due end)" % (
|
t = "(case when queue=2 and due <= %d then (ivl / cast(%d-due+0.001 as real)) else 100000+due end)" % (
|
||||||
self.today, self.today)
|
self.today, self.today)
|
||||||
else:
|
else: # DYN_DUE or unknown
|
||||||
# if we don't understand the term, default to due order
|
t = "c.due, c.ord"
|
||||||
t = "c.due"
|
|
||||||
return t + " limit %d" % l
|
return t + " limit %d" % l
|
||||||
|
|
||||||
def _moveToDyn(self, did, ids, start=-100000):
|
def _moveToDyn(self, did, ids, start=-100000):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue