]> git.wh0rd.org Git - tt-rss.git/commitdiff
api: allow sorting headlines by title
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sat, 9 Nov 2013 12:42:41 +0000 (16:42 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sat, 9 Nov 2013 12:42:41 +0000 (16:42 +0400)
classes/api.php

index b62a8b5fd90d7d1611e80e4b92f25320c82d7e55..aaa6bb9f616c259edf077bf64e0226a81fc84723 100644 (file)
@@ -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;