You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make this work:
$this->crud->setColumnOrder(['column_1', 'column_2', 'column_3']);
The sorting functionality in the Crud.php file does not work.
Also, I don't think the $crud->sort property makes no sense now.
The sorting should just shuffle the arrays where they are, without storing the order anywhere.
The text was updated successfully, but these errors were encountered:
Just want to add, you can remove the $this->crud->setFromDb(); in the Crud Controller and then manually add the columns with $this->crud->addColumns([.... Set the order of your columns as you want in addColumns().
Make this work:
$this->crud->setColumnOrder(['column_1', 'column_2', 'column_3']);
The sorting functionality in the Crud.php file does not work.
Also, I don't think the $crud->sort property makes no sense now.
The sorting should just shuffle the arrays where they are, without storing the order anywhere.
The text was updated successfully, but these errors were encountered: