mirror of
https://github.com/UndefinedOffset/SortableGridField.git
synced 2024-10-22 17:05:38 +02:00
Merge pull request #57 from purplespider/patch-1
Fixes fixSortColumn's Random Initial Sorting
This commit is contained in:
commit
86d08f9757
@ -153,7 +153,7 @@ class GridFieldSortableRows implements GridField_HTMLProvider, GridField_ActionP
|
||||
|
||||
|
||||
$max = $list->Max($this->sortColumn);
|
||||
$list=$list->filter($this->sortColumn, 0);
|
||||
$list=$list->filter($this->sortColumn, 0)->sort("Created,ID");
|
||||
if($list->Count()>0) {
|
||||
$owner = $gridField->Form->getRecord();
|
||||
$sortColumn = $this->sortColumn;
|
||||
|
Loading…
Reference in New Issue
Block a user