sort by card ordinal after fact sort

This commit is contained in:
Damien Elmes 2011-04-10 05:11:50 +09:00
parent efe6177c7a
commit 9ebbdc2be1

View file

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