From: Max Weller Date: Thu, 21 Jun 2012 10:55:03 +0000 (+0200) Subject: Added ORDER BY clause for conversation view X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6fe8a13b64a26f84fa929f9cd9fcc995953da8de;p=friendica.git Added ORDER BY clause for conversation view --- diff --git a/include/api.php b/include/api.php index 124096bf0f..b77156dfae 100644 --- a/include/api.php +++ b/include/api.php @@ -865,7 +865,7 @@ //$include_entities = (x($_REQUEST,'include_entities')?$_REQUEST['include_entities']:false); //$sql_extra = ""; - if ($_GET["conversation"] == "true") $sql_extra .= " AND `item`.`parent` = %d"; else $sql_extra .= " AND `item`.`id` = %d"; + if ($_GET["conversation"] == "true") $sql_extra .= " AND `item`.`parent` = %d ORDER BY `received` ASC "; else $sql_extra .= " AND `item`.`id` = %d"; $r = q("SELECT `item`.*, `item`.`id` AS `item_id`, `contact`.`name`, `contact`.`photo`, `contact`.`url`, `contact`.`rel`,