From c994f26dbd8151bd1e937dbb13d3ae416740fdd9 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Sun, 21 Jan 2018 18:11:04 -0800 Subject: preserve reverse date sort in mod_search after changes --- Zotlabs/Module/Search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Zotlabs/Module/Search.php') diff --git a/Zotlabs/Module/Search.php b/Zotlabs/Module/Search.php index 504c0353f..4d35b59f3 100644 --- a/Zotlabs/Module/Search.php +++ b/Zotlabs/Module/Search.php @@ -190,7 +190,7 @@ class Search extends \Zotlabs\Web\Controller { } if($r) { $str = ids_to_querystr($r,'item_id'); - $r = q("select *, id as item_id from item where id in ( " . $str . ") "); + $r = q("select *, id as item_id from item where id in ( " . $str . ") order by created desc "); } } else { -- cgit v1.2.3