From: Evan Prodromou Date: Thu, 10 Jul 2008 03:28:35 +0000 (-0400) Subject: order search rss items by date desc X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ad554f38e1c8aec55e7c93d9cd795abc3a78f8c1;p=quix0rs-gnu-social.git order search rss items by date desc darcs-hash:20080710032835-84dde-dc8534409c6ba05fd9390ff965ab9f7aea0a04eb.gz --- diff --git a/actions/noticesearchrss.php b/actions/noticesearchrss.php index f5834c4c1c..6df146ed51 100644 --- a/actions/noticesearchrss.php +++ b/actions/noticesearchrss.php @@ -40,7 +40,8 @@ class NoticesearchrssAction extends Rss10Action { $q = strtolower($q); $notice->whereAdd('MATCH(content) against (\''.addslashes($q).'\')'); - + $notice->orderBy('created DESC'); + # Ask for an extra to see if there's more. if ($limit != 0) {