default headline sort order by date_entered instead of updated

This commit is contained in:
Andrew Dolgov 2010-10-27 12:10:14 +04:00
parent 338302709c
commit f9b2d27c70

View file

@ -3514,9 +3514,9 @@
} }
if (get_pref($link, 'REVERSE_HEADLINES', $owner_uid)) { if (get_pref($link, 'REVERSE_HEADLINES', $owner_uid)) {
$order_by = "updated"; $order_by = "date_entered";
} else { } else {
$order_by = "updated DESC"; $order_by = "date_entered DESC";
} }
if ($view_mode != "noscores") { if ($view_mode != "noscores") {
@ -3578,7 +3578,7 @@
} }
$query = "SELECT DISTINCT $query = "SELECT DISTINCT
date_updated, date_entered,
guid, guid,
ttrss_entries.id,ttrss_entries.title, ttrss_entries.id,ttrss_entries.title,
updated, updated,