api: allow sorting headlines by title

This commit is contained in:
Andrew Dolgov 2013-11-09 16:42:41 +04:00
parent 4ad04ee227
commit 273c33e512
1 changed files with 3 additions and 0 deletions

View File

@ -202,6 +202,9 @@ class API extends Handler {
$override_order = false; $override_order = false;
switch ($_REQUEST["order_by"]) { switch ($_REQUEST["order_by"]) {
case "title":
$override_order = "ttrss_entries.title";
break;
case "date_reverse": case "date_reverse":
$override_order = "score DESC, date_entered, updated"; $override_order = "score DESC, date_entered, updated";
break; break;