mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Merge pull request #166 from tractorcow/pulls/2.0/sort-newest-first
Sort newest posts first
This commit is contained in:
commit
8d64f95372
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user