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). 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 + Fixed bug #416, which caused sorting on a date to fail if the year was not
included in the dateformat (thanks to Michelle Crane). included in the dateformat (thanks to Michelle Crane).
+ Fixed bug #417, which caused sorting on countdown fields to be wrong + Fixed bug #417, which caused sorting on countdown and age fields to be
(thanks to Michell Crane). wrong (thanks to Michell Crane).
+ Fixed bug #418, which caused the attribute modifier 'due.before' to fail + 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). 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 + 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::ascendingDueDate :
Table::descendingDueDate)); Table::descendingDueDate));
else if (column == "recur") else if (column == "recur" || column == "age" || column == "age_compact")
table.sortOn (columnIndex[column], table.sortOn (columnIndex[column],
(direction == '+' ? (direction == '+' ?
Table::ascendingPeriod : Table::ascendingPeriod :