Feature - sorting by age, age_compact

- Now supports correct sorting of the age and age_compact fields.
This commit is contained in:
Paul Beckingham 2010-06-27 19:31:08 -04:00
parent 7f99d39d19
commit 426eac97aa
2 changed files with 3 additions and 3 deletions

View file

@ -39,8 +39,8 @@
containing Unicode characters to fail (thanks to Michal Josífko).
+ Fixed bug #416, which caused sorting on a date to fail if the year was not
included in the dateformat (thanks to Michelle Crane).
+ Fixed bug #417, which caused sorting on countdown fields to be wrong
(thanks to Michell Crane).
+ Fixed bug #417, which caused sorting on countdown and age fields to be
wrong (thanks to Michell Crane).
+ Fixed bug #418, which caused the attribute modifier 'due.before' to fail
if the year was not included in the dateformat (thanks to Michelle Crane).
+ Fixed bug #132, which failed to set a sort order so that active tasks sort

View file

@ -679,7 +679,7 @@ int runCustomReport (
Table::ascendingDueDate :
Table::descendingDueDate));
else if (column == "recur")
else if (column == "recur" || column == "age" || column == "age_compact")
table.sortOn (columnIndex[column],
(direction == '+' ?
Table::ascendingPeriod :