From: Andrew Dolgov Date: Thu, 28 Mar 2013 15:30:07 +0000 (+0400) Subject: use new double-date sorting in non-default sorting modes X-Git-Tag: 1.7.6~198 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=250b2e10cb4db0890768e0eee32ed3ce7a6b1b57;p=tt-rss.git use new double-date sorting in non-default sorting modes --- diff --git a/classes/feeds.php b/classes/feeds.php index 20e3e700..1086dc49 100644 --- a/classes/feeds.php +++ b/classes/feeds.php @@ -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; }