From db4c939864355ffce6cece3b042b4e96e72e6d5e Mon Sep 17 00:00:00 2001 From: Pierre Date: Sat, 3 Jun 2017 13:42:45 +0200 Subject: [PATCH] Reversed user list order --- classes/components/friends.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/components/friends.php b/classes/components/friends.php index 5e78f0f..d053954 100644 --- a/classes/components/friends.php +++ b/classes/components/friends.php @@ -29,7 +29,7 @@ class friends { //Prepare the request on the database $tableName = $this->friendsTable.", utilisateurs"; - $condition = "WHERE ID_personne = ? AND amis.ID_amis = utilisateurs.ID ORDER BY utilisateurs.last_activity"; + $condition = "WHERE ID_personne = ? AND amis.ID_amis = utilisateurs.ID ORDER BY utilisateurs.last_activity DESC"; $condValues = array($userID); //Specify which fields to get