change datatable to accept multisort

This commit is contained in:
2024-12-23 07:50:36 +00:00
parent dbbc25ac7b
commit e9ca94f089
2 changed files with 13 additions and 5 deletions

View File

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