diff --git a/classes/feeds.php b/classes/feeds.php index 778850fc40017b624663f922e2ea27f9930b41f8..1d0bb5293f0d5c5f13b106ab50cab83cb2aab2c5 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); diff --git a/index.php b/index.php index a8cc38ca33a06e981d6b6ce3795ea5bfe27215cb..b3f63d461195637517bd38d53835ca9733533b53 100644 --- a/index.php +++ b/index.php @@ -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()">