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(
'ParentID' => $this->owner->ID,
'ClassName' => $excluded
));
))->sort('"SiteTree"."Created" DESC');
$gridField = new BlogFilter_GridField(
"ChildPages",
$this->getLumberjackTitle(),