]> git.wh0rd.org Git - tt-rss.git/commitdiff
add back sorting by title
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 4 Apr 2013 16:44:55 +0000 (20:44 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 4 Apr 2013 16:44:55 +0000 (20:44 +0400)
classes/feeds.php
index.php

index 778850fc40017b624663f922e2ea27f9930b41f8..1d0bb5293f0d5c5f13b106ab50cab83cb2aab2c5 100644 (file)
@@ -866,12 +866,15 @@ class Feeds extends Handler_Protected {
                $override_order = false;
 
                switch ($order_by) {
-                       case "date_reverse":
-                               $override_order = "date_entered, updated";
-                               break;
-                       case "feed_dates":
-                               $override_order = "updated DESC";
-                               break;
+               case "title":
+                       $override_order = "ttrss_entries.title";
+                       break;
+               case "date_reverse":
+                       $override_order = "date_entered, updated";
+                       break;
+               case "feed_dates":
+                       $override_order = "updated DESC";
+                       break;
                }
 
                if ($_REQUEST["debug"]) $timing_info = print_checkpoint("04", $timing_info);
index a8cc38ca33a06e981d6b6ce3795ea5bfe27215cb..b3f63d461195637517bd38d53835ca9733533b53 100644 (file)
--- a/index.php
+++ b/index.php
                        <option selected="selected" value="default"><?php echo __('Default') ?></option>
                        <option value="feed_dates"><?php echo __('Newest first') ?></option>
                        <option value="date_reverse"><?php echo __('Oldest first') ?></option>
+                       <option value="title"><?php echo __('Title') ?></option>
                </select>
 
                <div dojoType="dijit.form.ComboButton" onclick="catchupCurrentFeed()">