From 81d96c0dee5d6f4146f0089178578544f0f9c533 Mon Sep 17 00:00:00 2001 From: Gilles Grandou Date: Mon, 9 Oct 2017 17:23:13 +0200 Subject: [PATCH] makes 'order by title' to sort by title and by ascending date * this allows to chronologically browse all articles with the same title. --- classes/api.php | 2 +- classes/feeds.php | 2 +- classes/handler/public.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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"; -- 2.39.5