]> git.wh0rd.org Git - tt-rss.git/commitdiff
syndicated feeds: fix ordering for last_marked etc
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 28 Mar 2013 17:34:28 +0000 (21:34 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 28 Mar 2013 17:34:28 +0000 (21:34 +0400)
classes/handler/public.php

index 32e40657de06e3d7b700aa62543d466366bf67c4..c302043dffa7ff775d630a5a8d563aeb5036556a 100644 (file)
@@ -17,9 +17,9 @@ class Handler_Public extends Handler {
                $date_sort_field = "date_entered DESC, updated DESC";
 
                if ($feed == -2)
-                       $date_sort_field = "last_published";
+                       $date_sort_field = "last_published DESC";
                else if ($feed == -1)
-                       $date_sort_field = "last_marked";
+                       $date_sort_field = "last_marked DESC";
 
                $qfh_ret = queryFeedHeadlines($this->link, $feed,
                        $limit, $view_mode, $is_cat, $search, $search_mode,