Merge pull request #57 from purplespider/patch-1

Fixes fixSortColumn's Random Initial Sorting
This commit is contained in:
Ed Chipman 2014-08-06 13:15:32 -03:00
commit 86d08f9757

View File

@ -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;