instead of taking batch timestamp and score (?) into account, make oldest first sorting work consistently with newest first - i.e. rely on feed-provided timestamp

This commit is contained in:
Andrew Dolgov 2020-08-11 13:29:09 +03:00
parent 05a47e5cf4
commit 48be005774
3 changed files with 3 additions and 3 deletions

View File

@ -222,7 +222,7 @@ class API extends Handler {
$override_order = "ttrss_entries.title, date_entered, updated";
break;
case "date_reverse":
$override_order = "score DESC, date_entered, updated";
$override_order = "updated";
$skip_first_id_check = true;
break;
case "feed_dates":

View File

@ -537,7 +537,7 @@ class Feeds extends Handler_Protected {
$override_order = "ttrss_entries.title, date_entered, updated";
break;
case "date_reverse":
$override_order = "score DESC, date_entered, updated";
$override_order = "updated";
$skip_first_id_check = true;
break;
case "feed_dates":

View File

@ -25,7 +25,7 @@ class Handler_Public extends Handler {
$date_sort_field = "ttrss_entries.title, date_entered, updated";
break;
case "date_reverse":
$date_sort_field = "date_entered, updated";
$date_sort_field = "updated";
break;
case "feed_dates":
$date_sort_field = "updated DESC";