GTG

Comment 3 for bug 538643

Revision history for this message
Karlo Jež (karlo-jez) wrote :

Column COL_CDATE is never displayed, but it is used for sorting. Because it is converted to readable string it is sorted by lexicographic order:

2 days ago
300 days ago
50 days ago
today
tomorrow
yesterday

Since COL_CDATE is not displayed, it does not have to be in readable form. This small patch removes to_readable_string() from the task date returned by func. on_get_value() for the column. It seems to fix the sorting problem.
I guess it would be possible to add a special column_id for sorting, but it seems unnecessary for now.