sort: fix fallback sort on date

This commit is contained in:
Frédéric Péters 2012-08-27 11:48:04 +02:00
parent d4b86fe361
commit cfc909fb72
1 changed files with 2 additions and 2 deletions

View File

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