revert to sorting by updated instead of date_entering unless Date sorting is requested
This commit is contained in:
parent
8872d5f022
commit
6a69b6ad44
2 changed files with 6 additions and 6 deletions
|
@ -327,17 +327,17 @@
|
||||||
|
|
||||||
case "title":
|
case "title":
|
||||||
if (get_pref($link, 'REVERSE_HEADLINES', $owner_uid)) {
|
if (get_pref($link, 'REVERSE_HEADLINES', $owner_uid)) {
|
||||||
$override_order = "title DESC, date_entered";
|
$override_order = "title DESC, updated";
|
||||||
} else {
|
} else {
|
||||||
$override_order = "title, date_entered DESC";
|
$override_order = "title, updated DESC";
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "score":
|
case "score":
|
||||||
if (get_pref($link, 'REVERSE_HEADLINES', $owner_uid)) {
|
if (get_pref($link, 'REVERSE_HEADLINES', $owner_uid)) {
|
||||||
$override_order = "score, date_entered";
|
$override_order = "score, updated";
|
||||||
} else {
|
} else {
|
||||||
$override_order = "score DESC, date_entered DESC";
|
$override_order = "score DESC, updated DESC";
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -3512,9 +3512,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
if (get_pref($link, 'REVERSE_HEADLINES', $owner_uid)) {
|
if (get_pref($link, 'REVERSE_HEADLINES', $owner_uid)) {
|
||||||
$order_by = "date_entered";
|
$order_by = "updated";
|
||||||
} else {
|
} else {
|
||||||
$order_by = "date_entered DESC";
|
$order_by = "updated DESC";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($view_mode != "noscores") {
|
if ($view_mode != "noscores") {
|
||||||
|
|
Loading…
Reference in a new issue