public function __construct($code, $class, $baseControllerName)
{
parent::__construct($code, $class, $baseControllerName);
if (!$this->hasRequest()) {
$this->datagridValues = array(
'_page' => 1,
'_sort_order' => 'DESC', // sort direction
'_sort_by' => 'id' // field name
);
}
}
Created
March 2, 2017 12:45
-
-
Save redleafar/c3de660b80e42d502b908b68795c1606 to your computer and use it in GitHub Desktop.
Order list in sonata admin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment