]> git.wh0rd.org Git - tt-rss.git/commitdiff
makes 'order by title' to sort by title and by ascending date
authorGilles Grandou <gilles@grandou.net>
Mon, 9 Oct 2017 15:23:13 +0000 (17:23 +0200)
committerGilles Grandou <gilles@grandou.net>
Mon, 9 Oct 2017 20:50:03 +0000 (22:50 +0200)
* this allows to chronologically browse all articles with the
  same title.

classes/api.php
classes/feeds.php
classes/handler/public.php

index 00e58ee502b1d31c502680b57ce748cd129e1743..97050e1054d7c43893d1e41c2acb74d285d2069f 100644 (file)
@@ -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";
index 99eb0fbf2d8c6b22ca92c96568af7eabcfc2fd74..70271802a686cc8687a4c4b0ed4b3cfd03f30e98 100755 (executable)
@@ -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";
index 317bc64db816d3a44f442dfab32bb749fc5c2cc4..d3c854ae47a143402e285229dff198e700319032 100644 (file)
@@ -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";