Retrieve ordered results

This commit is contained in:
2025-06-06 13:53:42 +02:00
parent 7ab75a30fb
commit 321a6a4bea
6 changed files with 91 additions and 57 deletions

View File

@@ -18,7 +18,7 @@ class PrehistoricController extends AbstractController
$repo = $em->getRepository(Prehistoric::class);
//$repoBib = $em->getRepository(Bibliography::class);
$records = $repo->findBy([], ['id' => 'ASC']);
$records = $repo->findBy([], ['label' => 'ASC']);
// Terrible? N+1..
foreach ($records as $key => $record) {