change datatable to accept multisort
This commit is contained in:
@@ -83,7 +83,10 @@ class DataTableService
|
||||
}
|
||||
|
||||
$sorting = $this->dataTableInput->getSorting();
|
||||
$query = (new ApplySort($query, $sorting))->apply();
|
||||
foreach ($sorting as $sort){
|
||||
$query = (new ApplySort($query, $sort))->apply();
|
||||
}
|
||||
|
||||
return $query;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user