From 436972744df5d1f1bf38efd463ef02758cc989ef Mon Sep 17 00:00:00 2001 From: Saophalkun Ponlu Date: Tue, 28 Aug 2012 21:18:07 +1200 Subject: [PATCH] Enable page sorting by Page name in list view (see #7601) --- code/controllers/CMSMain.php | 1 + 1 file changed, 1 insertion(+) diff --git a/code/controllers/CMSMain.php b/code/controllers/CMSMain.php index dccb354c..600418e7 100644 --- a/code/controllers/CMSMain.php +++ b/code/controllers/CMSMain.php @@ -703,6 +703,7 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr '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);