mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
sort by card ordinal after fact sort
This commit is contained in:
parent
efe6177c7a
commit
9ebbdc2be1
1 changed files with 3 additions and 3 deletions
|
@ -47,11 +47,11 @@ class Finder(object):
|
|||
return "select id from cards where " + lim
|
||||
elif type.startswith("fact"):
|
||||
if type == "factCrt":
|
||||
sort = "f.crt"
|
||||
sort = "f.crt, c.ord"
|
||||
elif type == "factMod":
|
||||
sort = "f.mod"
|
||||
sort = "f.mod, c.ord"
|
||||
elif type == "factFld":
|
||||
sort = "f.sfld collate nocase"
|
||||
sort = "f.sfld collate nocase, c.ord"
|
||||
else:
|
||||
raise Exception()
|
||||
return """
|
||||
|
|
Loading…
Reference in a new issue