Ordering / Sorting
Sorting is fairly straight forward! Although currently you can only sort by database values on the immediate Model.
This means you cannot sort on:
- Relationships
 - Accessors
 
 Frontend
To enable a column to be sorted, just add sorter = true to the definition.
$columns = [[
    'label' => 'Gender',
    'name' => 'gender',
    'sortable' => true,
]];
If you need more advance sorting, you can create a custom Panel which extends \Maelstrom\Panel and overwrite the applySorting() method.
← Searching Pagination →