Skip to content
Browse files

Merge pull request #188 from phalkunz/7601-listview-sort-by-title

Enable page sorting by Page name in list view (see #7601)
  • Loading branch information...
2 parents b637d04 + 4369727 commit ab0dce91272063375689981b1c2e0a81a4e74a9d @chillu chillu committed Aug 29, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 code/controllers/CMSMain.php
View
1 code/controllers/CMSMain.php
@@ -702,6 +702,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 ab0dce9

Please sign in to comment.
Something went wrong with that request. Please try again.