]> git.wh0rd.org Git - tt-rss.git/commitdiff
use new double-date sorting in non-default sorting modes
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 28 Mar 2013 15:30:07 +0000 (19:30 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 28 Mar 2013 15:30:07 +0000 (19:30 +0400)
classes/feeds.php

index 20e3e7004c53b7d2d8f6b72b1b0767d4b8ef6cc6..1086dc493dfd062509c3678b84b77baa32fccaff 100644 (file)
@@ -871,25 +871,25 @@ class Feeds extends Handler_Protected {
                switch ($order_by) {
                        case "date":
                                if (get_pref($this->link, 'REVERSE_HEADLINES', $owner_uid)) {
-                                       $override_order = "$date_sort_field";
+                                       $override_order = "$date_sort_field, updated";
                                } else {
-                                       $override_order = "$date_sort_field DESC";
+                                       $override_order = "$date_sort_field DESC, updated DESC";
                                }
                                break;
 
                        case "title":
                                if (get_pref($this->link, 'REVERSE_HEADLINES', $owner_uid)) {
-                                       $override_order = "title DESC, $date_sort_field";
+                                       $override_order = "title DESC, $date_sort_field, updated";
                                } else {
-                                       $override_order = "title, $date_sort_field DESC";
+                                       $override_order = "title, $date_sort_field DESC, updated DESC";
                                }
                                break;
 
                        case "score":
                                if (get_pref($this->link, 'REVERSE_HEADLINES', $owner_uid)) {
-                                       $override_order = "score, $date_sort_field";
+                                       $override_order = "score, $date_sort_field, updated";
                                } else {
-                                       $override_order = "score DESC, $date_sort_field DESC";
+                                       $override_order = "score DESC, $date_sort_field DESC, updated DESC";
                                }
                                break;
                }