From 06b7f610edece930064760d357402f96b415cb65 Mon Sep 17 00:00:00 2001
From: BENKE Charles <charles.fr@benke.fr>
Date: Tue, 3 Mar 2015 17:18:20 +0100
Subject: [PATCH] Update index.php

list of cossumed time more usefull if ordered by desc
---
 htdocs/projet/index.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/htdocs/projet/index.php b/htdocs/projet/index.php
index 65351b70638..a7f0f957f06 100644
--- a/htdocs/projet/index.php
+++ b/htdocs/projet/index.php
@@ -175,7 +175,7 @@ if (empty($conf->global->PROJECT_HIDE_TASKS))
 	if ($socid)	$sql.= "  AND (p.fk_soc IS NULL OR p.fk_soc = 0 OR p.fk_soc = ".$socid.")";
 	$sql.= " AND p.fk_statut=1";
 	$sql.= " GROUP BY p.ref, p.title, p.rowid, t.label, t.rowid, t.planned_workload, t.duration_effective, t.progress, t.dateo, t.datee";
-	$sql.= " ORDER BY t.rowid, t.dateo, t.datee";
+	$sql.= " ORDER BY t.dateo desc, t.rowid desc, t.datee";
 	$sql.= $db->plimit($max+1);	// We want more to know if we have more than limit
 
 	$var=true;
-- 
GitLab