use new double-date sorting in non-default sorting modes

This commit is contained in:
Andrew Dolgov 2013-03-28 19:30:07 +04:00
parent 67b9d740ae
commit 250b2e10cb
1 changed files with 6 additions and 6 deletions

View File

@ -871,25 +871,25 @@ class Feeds extends Handler_Protected {
switch ($order_by) { switch ($order_by) {
case "date": case "date":
if (get_pref($this->link, 'REVERSE_HEADLINES', $owner_uid)) { if (get_pref($this->link, 'REVERSE_HEADLINES', $owner_uid)) {
$override_order = "$date_sort_field"; $override_order = "$date_sort_field, updated";
} else { } else {
$override_order = "$date_sort_field DESC"; $override_order = "$date_sort_field DESC, updated DESC";
} }
break; break;
case "title": case "title":
if (get_pref($this->link, 'REVERSE_HEADLINES', $owner_uid)) { if (get_pref($this->link, 'REVERSE_HEADLINES', $owner_uid)) {
$override_order = "title DESC, $date_sort_field"; $override_order = "title DESC, $date_sort_field, updated";
} else { } else {
$override_order = "title, $date_sort_field DESC"; $override_order = "title, $date_sort_field DESC, updated DESC";
} }
break; break;
case "score": case "score":
if (get_pref($this->link, 'REVERSE_HEADLINES', $owner_uid)) { if (get_pref($this->link, 'REVERSE_HEADLINES', $owner_uid)) {
$override_order = "score, $date_sort_field"; $override_order = "score, $date_sort_field, updated";
} else { } else {
$override_order = "score DESC, $date_sort_field DESC"; $override_order = "score DESC, $date_sort_field DESC, updated DESC";
} }
break; break;
} }