Merge branch 'sort_title_date' of ggrandou/tt-rss into master
This commit is contained in:
commit
d320b55af9
|
@ -214,7 +214,7 @@ class API extends Handler {
|
||||||
$override_order = false;
|
$override_order = false;
|
||||||
switch ($_REQUEST["order_by"]) {
|
switch ($_REQUEST["order_by"]) {
|
||||||
case "title":
|
case "title":
|
||||||
$override_order = "ttrss_entries.title";
|
$override_order = "ttrss_entries.title, date_entered, updated";
|
||||||
break;
|
break;
|
||||||
case "date_reverse":
|
case "date_reverse":
|
||||||
$override_order = "score DESC, date_entered, updated";
|
$override_order = "score DESC, date_entered, updated";
|
||||||
|
|
|
@ -915,7 +915,7 @@ class Feeds extends Handler_Protected {
|
||||||
|
|
||||||
switch ($order_by) {
|
switch ($order_by) {
|
||||||
case "title":
|
case "title":
|
||||||
$override_order = "ttrss_entries.title";
|
$override_order = "ttrss_entries.title, date_entered, updated";
|
||||||
break;
|
break;
|
||||||
case "date_reverse":
|
case "date_reverse":
|
||||||
$override_order = "score DESC, date_entered, updated";
|
$override_order = "score DESC, date_entered, updated";
|
||||||
|
|
|
@ -27,7 +27,7 @@ class Handler_Public extends Handler {
|
||||||
|
|
||||||
switch ($order) {
|
switch ($order) {
|
||||||
case "title":
|
case "title":
|
||||||
$date_sort_field = "ttrss_entries.title";
|
$date_sort_field = "ttrss_entries.title, date_entered, updated";
|
||||||
break;
|
break;
|
||||||
case "date_reverse":
|
case "date_reverse":
|
||||||
$date_sort_field = "date_entered, updated";
|
$date_sort_field = "date_entered, updated";
|
||||||
|
|
Loading…
Reference in New Issue