aboutsummaryrefslogtreecommitdiffstats
path: root/include/api.php
diff options
context:
space:
mode:
authorMax Weller <git@max-weller.de>2012-06-21 12:55:03 +0200
committerMax Weller <git@max-weller.de>2012-06-21 12:55:03 +0200
commit6fe8a13b64a26f84fa929f9cd9fcc995953da8de (patch)
treeb9568b6df945b176059042727dcaf87e5d4188a6 /include/api.php
parent0f5a6bfcdbde8f53283826251056a4670bdf9f7a (diff)
downloadvolse-hubzilla-6fe8a13b64a26f84fa929f9cd9fcc995953da8de.tar.gz
volse-hubzilla-6fe8a13b64a26f84fa929f9cd9fcc995953da8de.tar.bz2
volse-hubzilla-6fe8a13b64a26f84fa929f9cd9fcc995953da8de.zip
Added ORDER BY clause for conversation view
Diffstat (limited to 'include/api.php')
-rw-r--r--include/api.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/api.php b/include/api.php
index 124096bf0..b77156dfa 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`,