Merge pull request #61 from ismooth/master

Initial sorting equals sortColumn
This commit is contained in:
Ed Chipman 2014-10-03 11:23:10 -03:00
commit 2e9b7beffd

View File

@ -99,7 +99,7 @@ class GridFieldSortableRows implements GridField_HTMLProvider, GridField_ActionP
$headerState = $gridField->State->GridFieldSortableHeader;
$state = $gridField->State->GridFieldSortableRows;
if ((!is_bool($state->sortableToggle) || $state->sortableToggle==false) && $headerState && !empty($headerState->SortColumn)) {
return $dataList;
return $dataList->sort($this->sortColumn);
}
if ($state->sortableToggle == true) {