Merge pull request #166 from tractorcow/pulls/2.0/sort-newest-first

Sort newest posts first
This commit is contained in:
Christopher Pitt 2015-03-26 10:09:50 +13:00
commit 8d64f95372

View File

@ -62,7 +62,7 @@ class BlogFilter extends Lumberjack {
$pages = SiteTree::get()->filter(array( $pages = SiteTree::get()->filter(array(
'ParentID' => $this->owner->ID, 'ParentID' => $this->owner->ID,
'ClassName' => $excluded 'ClassName' => $excluded
)); ))->sort('"SiteTree"."Created" DESC');
$gridField = new BlogFilter_GridField( $gridField = new BlogFilter_GridField(
"ChildPages", "ChildPages",
$this->getLumberjackTitle(), $this->getLumberjackTitle(),