From 273c33e512b034bec1a392d41050cadc8522aff0 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 9 Nov 2013 16:42:41 +0400 Subject: [PATCH] api: allow sorting headlines by title --- classes/api.php | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.39.5