simon_w: #2123 - Blog RSS sorted by date

This commit is contained in:
Andrew O'Neil 2008-01-13 20:16:27 +00:00
parent 43fd90621e
commit b819135fe5
1 changed files with 3 additions and 1 deletions

View File

@ -249,7 +249,9 @@ class BlogHolder_Controller extends Page_Controller {
*/
function rss() {
global $project;
$rss = new RSSFeed($this->Children(), $this->Link(), $project . " blog", "", "Title", "ParsedContent");
$children = $this->Children();
$children->sort('Date', 'DESC');
$rss = new RSSFeed($children, $this->Link(), $project . " blog", "", "Title", "ParsedContent");
$rss->outputToBrowser();
}