Todo list : order by descending date, the earlier one must be in the top

This commit is contained in:
Dany De Bontridder 2015-01-10 13:04:22 +01:00
parent a0dd404009
commit 7156e0b5eb

View file

@ -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));