Reversed user list order

This commit is contained in:
Pierre 2017-06-03 13:42:45 +02:00
parent b0177e9c6f
commit db4c939864

View File

@ -29,7 +29,7 @@ class friends {
//Prepare the request on the database //Prepare the request on the database
$tableName = $this->friendsTable.", utilisateurs"; $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); $condValues = array($userID);
//Specify which fields to get //Specify which fields to get