From c7dfe51e038620d166b359bd6330275f45f87670 Mon Sep 17 00:00:00 2001 From: Pierre-Lin Bonnemaison Date: Tue, 18 Aug 2015 23:10:03 +0200 Subject: [PATCH] Meilleur ordre des discussions --- model/DataBase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/DataBase.php b/model/DataBase.php index 3de9f1c..efe7ab7 100755 --- a/model/DataBase.php +++ b/model/DataBase.php @@ -173,7 +173,7 @@ SELECT MAX(at) as at, number FROM (SELECT at, target as number FROM sendeds UNION (SELECT at, send_by as number FROM receiveds)) as discussions GROUP BY number - ORDER BY at + ORDER BY at DESC "; return $this->runQuery($query);