]> git.wh0rd.org Git - tt-rss.git/commitdiff
date_reverse view mode: take scoring into account
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sat, 6 Jul 2013 08:03:01 +0000 (12:03 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sat, 6 Jul 2013 08:03:01 +0000 (12:03 +0400)
classes/api.php
classes/feeds.php

index 23866072fef5973371c2ba395690c25060ecda81..334f5fdc9987d02bf98d3322dce92929288cdb0e 100644 (file)
@@ -203,7 +203,7 @@ class API extends Handler {
                        $override_order = false;
                        switch ($_REQUEST["order_by"]) {
                                case "date_reverse":
-                                       $override_order = "date_entered, updated";
+                                       $override_order = "score DESC, date_entered, updated";
                                        break;
                                case "feed_dates":
                                        $override_order = "updated DESC";
index 33f239ee6ad128194405a377e238edfaf742b391..aeadcf257e6623e559b8814db5d72a0676ad364c 100644 (file)
@@ -863,7 +863,7 @@ class Feeds extends Handler_Protected {
                        $override_order = "ttrss_entries.title";
                        break;
                case "date_reverse":
-                       $override_order = "date_entered, updated";
+                       $override_order = "score DESC, date_entered, updated";
                        break;
                case "feed_dates":
                        $override_order = "updated DESC";