From 7ef7dd31ee72e5d58c9d8bd012c57c0314a63b66 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 28 Mar 2013 21:34:28 +0400 Subject: [PATCH] syndicated feeds: fix ordering for last_marked etc --- classes/handler/public.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/handler/public.php b/classes/handler/public.php index 32e40657d..c302043df 100644 --- a/classes/handler/public.php +++ b/classes/handler/public.php @@ -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,