syndicated feeds: fix ordering for last_marked etc

This commit is contained in:
Andrew Dolgov 2013-03-28 21:34:28 +04:00
parent e105831db0
commit 7ef7dd31ee
1 changed files with 2 additions and 2 deletions

View File

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