diff options
author | Andrew Dolgov <[email protected]> | 2013-04-04 20:44:55 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-04-04 20:44:55 +0400 |
commit | f3b2e7d41fce72344295150cac4e15a1ad97dfa0 (patch) | |
tree | 0c2a641fdf1c43b25719ac5e10f18f6d09db720b | |
parent | ba1c7d7cc9984fbee8fa3be2a1359e0957a51b78 (diff) |
add back sorting by title
-rw-r--r-- | classes/feeds.php | 15 | ||||
-rw-r--r-- | index.php | 1 |
2 files changed, 10 insertions, 6 deletions
diff --git a/classes/feeds.php b/classes/feeds.php index 778850fc4..1d0bb5293 100644 --- a/classes/feeds.php +++ b/classes/feeds.php @@ -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); @@ -185,6 +185,7 @@ <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()"> |