fix: avoid fuzzy order of assignments when sorting by date
This commit is contained in:
@@ -36,7 +36,7 @@ class IndexController extends AbstractController
|
|||||||
$request->query->getInt('page', 1),
|
$request->query->getInt('page', 1),
|
||||||
$request->query->getInt('limit', 10),
|
$request->query->getInt('limit', 10),
|
||||||
[
|
[
|
||||||
'defaultSortFieldName' => 'destination.dateFrom',
|
'defaultSortFieldName' => ['destination.dateFrom', 'assignment.id'],
|
||||||
'defaultSortDirection' => 'asc',
|
'defaultSortDirection' => 'asc',
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -35,13 +35,13 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th>
|
||||||
ID
|
{{ knp_pagination_sortable(pagination, 'ID', ['assignment.id']) }}
|
||||||
</th>
|
</th>
|
||||||
<th>
|
<th>
|
||||||
Status
|
Status
|
||||||
</th>
|
</th>
|
||||||
<th>
|
<th>
|
||||||
{{ knp_pagination_sortable(pagination, 'Einsatz­zeitraum', 'destination.dateFrom') }}
|
{{ knp_pagination_sortable(pagination, 'Einsatz­zeitraum', ['destination.dateFrom', 'assignment.id']) }}
|
||||||
</th>
|
</th>
|
||||||
<th>
|
<th>
|
||||||
{{ knp_pagination_sortable(pagination, 'Destination', 'destination.product') }}
|
{{ knp_pagination_sortable(pagination, 'Destination', 'destination.product') }}
|
||||||
|
|||||||
Reference in New Issue
Block a user