From ae84e469b060c6e8df22080064221813575d0b28 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 15 Jan 2006 17:03:34 +0000 Subject: [PATCH] - Patch #39329 by markus: order sources in aggregator. --- modules/aggregator.module | 2 +- modules/aggregator/aggregator.module | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/aggregator.module b/modules/aggregator.module index dd371af95ef..e8624484474 100644 --- a/modules/aggregator.module +++ b/modules/aggregator.module @@ -1021,7 +1021,7 @@ function aggregator_page_list_submit($form_id, $form) { * Menu callback; displays all the feeds used by the aggregator. */ function aggregator_page_sources() { - $result = db_query('SELECT f.fid, f.title, f.description, f.image, MAX(i.timestamp) AS last FROM {aggregator_feed} f LEFT JOIN {aggregator_item} i ON f.fid = i.fid GROUP BY f.fid, f.title, f.description, f.image'); + $result = db_query('SELECT f.fid, f.title, f.description, f.image, MAX(i.timestamp) AS last FROM {aggregator_feed} f LEFT JOIN {aggregator_item} i ON f.fid = i.fid GROUP BY f.fid, f.title, f.description, f.image ORDER BY last DESC, f.title'); $output = "
\n"; while ($feed = db_fetch_object($result)) { $output .= '

'. check_plain($feed->title) ."

\n"; diff --git a/modules/aggregator/aggregator.module b/modules/aggregator/aggregator.module index dd371af95ef..e8624484474 100644 --- a/modules/aggregator/aggregator.module +++ b/modules/aggregator/aggregator.module @@ -1021,7 +1021,7 @@ function aggregator_page_list_submit($form_id, $form) { * Menu callback; displays all the feeds used by the aggregator. */ function aggregator_page_sources() { - $result = db_query('SELECT f.fid, f.title, f.description, f.image, MAX(i.timestamp) AS last FROM {aggregator_feed} f LEFT JOIN {aggregator_item} i ON f.fid = i.fid GROUP BY f.fid, f.title, f.description, f.image'); + $result = db_query('SELECT f.fid, f.title, f.description, f.image, MAX(i.timestamp) AS last FROM {aggregator_feed} f LEFT JOIN {aggregator_item} i ON f.fid = i.fid GROUP BY f.fid, f.title, f.description, f.image ORDER BY last DESC, f.title'); $output = "
\n"; while ($feed = db_fetch_object($result)) { $output .= '

'. check_plain($feed->title) ."

\n";