From: Andrew Dolgov Date: Sat, 9 Nov 2013 12:42:41 +0000 (+0400) Subject: api: allow sorting headlines by title X-Git-Tag: 1.11~28 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=273c33e512b034bec1a392d41050cadc8522aff0;p=tt-rss.git api: allow sorting headlines by title --- diff --git a/classes/api.php b/classes/api.php index b62a8b5f..aaa6bb9f 100644 --- a/classes/api.php +++ b/classes/api.php @@ -202,6 +202,9 @@ class API extends Handler { $override_order = false; switch ($_REQUEST["order_by"]) { + case "title": + $override_order = "ttrss_entries.title"; + break; case "date_reverse": $override_order = "score DESC, date_entered, updated"; break;