add order by on document list

This commit is contained in:
2022-04-19 15:46:10 +02:00
parent 7048f670ed
commit 26d5bf03bd
3 changed files with 3 additions and 3 deletions

View File

@@ -178,7 +178,7 @@ class DocumentPersonController extends AbstractController
$documents = $this->personDocumentACLAwareRepository->findByPerson(
$person,
[],
['date' => 'DESC', 'id' => 'DESC'],
$pagination->getItemsPerPage(),
$pagination->getCurrentPageFirstItemNumber()
);