From 426eac97aa2326ba198e1ad91a37b1c04b29e136 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 27 Jun 2010 19:31:08 -0400 Subject: [PATCH] Feature - sorting by age, age_compact - Now supports correct sorting of the age and age_compact fields. --- ChangeLog | 4 ++-- src/custom.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5b100eab9..b127e0f7a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/src/custom.cpp b/src/custom.cpp index 274d5505b..90853e00d 100644 --- a/src/custom.cpp +++ b/src/custom.cpp @@ -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 :