From: Gilles Grandou Date: Mon, 9 Oct 2017 15:23:13 +0000 (+0200) Subject: makes 'order by title' to sort by title and by ascending date X-Git-Tag: 17.12~117^2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=81d96c0dee5d6f4146f0089178578544f0f9c533;p=tt-rss.git makes 'order by title' to sort by title and by ascending date * this allows to chronologically browse all articles with the same title. --- diff --git a/classes/api.php b/classes/api.php index 00e58ee5..97050e10 100644 --- a/classes/api.php +++ b/classes/api.php @@ -214,7 +214,7 @@ class API extends Handler { $override_order = false; switch ($_REQUEST["order_by"]) { case "title": - $override_order = "ttrss_entries.title"; + $override_order = "ttrss_entries.title, date_entered, updated"; break; case "date_reverse": $override_order = "score DESC, date_entered, updated"; diff --git a/classes/feeds.php b/classes/feeds.php index 99eb0fbf..70271802 100755 --- a/classes/feeds.php +++ b/classes/feeds.php @@ -915,7 +915,7 @@ class Feeds extends Handler_Protected { switch ($order_by) { case "title": - $override_order = "ttrss_entries.title"; + $override_order = "ttrss_entries.title, date_entered, updated"; break; case "date_reverse": $override_order = "score DESC, date_entered, updated"; diff --git a/classes/handler/public.php b/classes/handler/public.php index 317bc64d..d3c854ae 100644 --- a/classes/handler/public.php +++ b/classes/handler/public.php @@ -27,7 +27,7 @@ class Handler_Public extends Handler { switch ($order) { case "title": - $date_sort_field = "ttrss_entries.title"; + $date_sort_field = "ttrss_entries.title, date_entered, updated"; break; case "date_reverse": $date_sort_field = "date_entered, updated";