From 8d513d74bec17672f685f20e3792759fd7de5f6c Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 8 May 2018 22:08:25 +0000 Subject: [PATCH] Reverted SQL sorting --- include/conversation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/conversation.php b/include/conversation.php index 2a558cfca6..4a9d799d26 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -902,7 +902,7 @@ function conversation_add_children($parents, $block_authors, $order) { foreach ($parents AS $parent) { $thread_items = dba::p(item_query()."AND `item`.`parent-uri` = ? AND `item`.`uid` IN (0, ?) $block_sql - ORDER BY `parent` DESC, `gravity` ASC, `id` ASC" . $limit, + ORDER BY `item`.`commented` DESC" . $limit, $parent['uri'], local_user()); $comments = dba::inArray($thread_items);