From 7156e0b5eb7c193fc01dbbec70207afafece31e2 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Sat, 10 Jan 2015 13:04:22 +0100 Subject: [PATCH] Todo list : order by descending date, the earlier one must be in the top --- include/class_todo_list.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/class_todo_list.php b/include/class_todo_list.php index 391c33dfa..119cc30b1 100644 --- a/include/class_todo_list.php +++ b/include/class_todo_list.php @@ -185,7 +185,7 @@ class Todo_List { $sql="select tl_id, tl_title,tl_desc,to_char( tl_date,'DD.MM.YYYY') as str_tl_date,tl_date from todo_list where use_login=$1". - " order by tl_date::date asc"; + " order by tl_date::date desc"; $res=$this->cn->exec_sql( $sql, array($this->use_login));