mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
FIX [sort][center] sort list of centers in admin alphabetically
This commit is contained in:
parent
95b3933650
commit
01e9a15bd7
@ -77,6 +77,8 @@ class CenterController extends AbstractController
|
|||||||
|
|
||||||
$entities = $em->getRepository(\Chill\MainBundle\Entity\Center::class)->findAll();
|
$entities = $em->getRepository(\Chill\MainBundle\Entity\Center::class)->findAll();
|
||||||
|
|
||||||
|
usort($entities, fn (Center $a, Center $b) => $a->getName() <=> $b->getName());
|
||||||
|
|
||||||
return $this->render('@ChillMain/Center/index.html.twig', [
|
return $this->render('@ChillMain/Center/index.html.twig', [
|
||||||
'entities' => $entities,
|
'entities' => $entities,
|
||||||
]);
|
]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user