1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-01-09 14:09:15 +00:00

sort feedlist by unread articles (closes #66)

This commit is contained in:
Andrew Dolgov
2006-06-05 09:33:19 +01:00
parent b2caf812fb
commit c9268ed599
7 changed files with 95 additions and 3 deletions

View File

@@ -241,9 +241,17 @@
// }
if (get_pref($link, 'ENABLE_FEED_CATS')) {
$order_by_qpart = "category,title";
if (get_pref($link, "FEEDS_SORT_BY_UNREAD")) {
$order_by_qpart = "category,unread DESC,title";
} else {
$order_by_qpart = "category,title";
}
} else {
$order_by_qpart = "title";
if (get_pref($link, "FEEDS_SORT_BY_UNREAD")) {
$order_by_qpart = "unread DESC,title";
} else {
$order_by_qpart = "title";
}
}
$result = db_query($link, "SELECT ttrss_feeds.*,