sort: fix fallback sort on date
This commit is contained in:
parent
d4b86fe361
commit
cfc909fb72
|
@ -112,7 +112,7 @@ class Cmp:
|
|||
t = -cmp(get_no_as_int(x.no), get_no_as_int(y.no))
|
||||
if t == 0 and hasattr(x, 'nodoc'):
|
||||
t = cmp(x.nodoc, y.nodoc)
|
||||
elif t == 0 and hasattr(x, 'date'):
|
||||
t = cmp(x.date, y.date)
|
||||
elif t == 0 and hasattr(x, 'dateDoc'):
|
||||
t = cmp(x.dateDoc, y.dateDoc)
|
||||
return t
|
||||
|
||||
|
|
Reference in New Issue