Sort newest posts first

This commit is contained in:
Damian Mooyman 2015-03-26 09:56:06 +13:00
parent 3be06ffd20
commit deee52a994

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(),