summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@0d.be>2012-08-27 09:48:04 (GMT)
committerFrédéric Péters <fpeters@0d.be>2012-08-27 09:48:04 (GMT)
commitcfc909fb72f9615727a0308bff2242a3aea37ba0 (patch)
treed9b62f33132ca5d4a34144e5b46636bc0661c585
parentd4b86fe36117cd461de6bfdd94097e820b958eb5 (diff)
downloadtabellio.searchform-cfc909fb72f9615727a0308bff2242a3aea37ba0.zip
tabellio.searchform-cfc909fb72f9615727a0308bff2242a3aea37ba0.tar.gz
tabellio.searchform-cfc909fb72f9615727a0308bff2242a3aea37ba0.tar.bz2
sort: fix fallback sort on date
-rw-r--r--tabellio/searchform/cmpfunctions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tabellio/searchform/cmpfunctions.py b/tabellio/searchform/cmpfunctions.py
index 71448db..f375300 100644
--- a/tabellio/searchform/cmpfunctions.py
+++ b/tabellio/searchform/cmpfunctions.py
@@ -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