]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
order search rss items by date desc
authorEvan Prodromou <evan@prodromou.name>
Thu, 10 Jul 2008 03:28:35 +0000 (23:28 -0400)
committerEvan Prodromou <evan@prodromou.name>
Thu, 10 Jul 2008 03:28:35 +0000 (23:28 -0400)
darcs-hash:20080710032835-84dde-dc8534409c6ba05fd9390ff965ab9f7aea0a04eb.gz

actions/noticesearchrss.php

index f5834c4c1c8a892ba50ef9210a05472f5c9d7be8..6df146ed518706b7ebb7642a18d8cb2a9e86ee8a 100644 (file)
@@ -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) {