Browse files

Enable page sorting by Page name in list view (see #7601)

  • Loading branch information...
1 parent 24b0e5d commit 436972744df5d1f1bf38efd463ef02758cc989ef @phalkunz phalkunz committed Aug 28, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 code/controllers/CMSMain.php
View
1 code/controllers/CMSMain.php
@@ -703,6 +703,7 @@ public function ListViewForm() {
'Created' => _t('SiteTree.CREATED', 'Date Created'),
'LastEdited' => _t('SiteTree.LASTUPDATED', 'Last Updated'),
);
+ $gridField->getConfig()->getComponentByType('GridFieldSortableHeader')->setFieldSorting(array('getTreeTitle' => 'Title'));
if(!$params) {
$fields = array_merge(array('listChildrenLink' => ''), $fields);

0 comments on commit 4369727

Please sign in to comment.