summaryrefslogtreecommitdiff
path: root/classes/feeds.php
diff options
context:
space:
mode:
Diffstat (limited to 'classes/feeds.php')
-rw-r--r--classes/feeds.php11
1 files changed, 4 insertions, 7 deletions
diff --git a/classes/feeds.php b/classes/feeds.php
index 6aca206a2..fcac6e4d6 100644
--- a/classes/feeds.php
+++ b/classes/feeds.php
@@ -862,15 +862,12 @@ class Feeds extends Handler_Protected {
$override_order = false;
- if (get_pref($this->link, "SORT_HEADLINES_BY_FEED_DATE", $owner_uid)) {
- $date_sort_field = "updated";
- } else {
- $date_sort_field = "date_entered";
- }
-
switch ($order_by) {
case "date_reverse":
- $override_order = "$date_sort_field, updated";
+ $override_order = "date_entered DESC, updated";
+ break;
+ case "feed_dates":
+ $override_order = "updated DESC";
break;
}