mirror of
https://github.com/ankitects/anki.git
synced 2025-11-13 08:07:11 -05: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
|
return "select id from cards where " + lim
|
||||||
elif type.startswith("fact"):
|
elif type.startswith("fact"):
|
||||||
if type == "factCrt":
|
if type == "factCrt":
|
||||||
sort = "f.crt"
|
sort = "f.crt, c.ord"
|
||||||
elif type == "factMod":
|
elif type == "factMod":
|
||||||
sort = "f.mod"
|
sort = "f.mod, c.ord"
|
||||||
elif type == "factFld":
|
elif type == "factFld":
|
||||||
sort = "f.sfld collate nocase"
|
sort = "f.sfld collate nocase, c.ord"
|
||||||
else:
|
else:
|
||||||
raise Exception()
|
raise Exception()
|
||||||
return """
|
return """
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue