mirror of
https://github.com/UndefinedOffset/SortableGridField.git
synced 2024-10-22 17:05:38 +02:00
Merge pull request #61 from ismooth/master
Initial sorting equals sortColumn
This commit is contained in:
commit
2e9b7beffd
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user