Browse Source

makes 'order by title' to sort by title and by ascending date

* this allows to chronologically browse all articles with the
  same title.
Gilles Grandou 2 years ago
parent
commit
81d96c0dee
3 changed files with 3 additions and 3 deletions
  1. 1 1
      classes/api.php
  2. 1 1
      classes/feeds.php
  3. 1 1
      classes/handler/public.php

+ 1 - 1
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";

+ 1 - 1
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";

+ 1 - 1
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";