From 50431e54eed0e37b1ee446aa16b324642d2d62f7 Mon Sep 17 00:00:00 2001 From: afornerot Date: Mon, 24 Feb 2020 14:04:35 +0100 Subject: [PATCH] trier les formulaires par ordre alpha (ref #87) --- .../Cadoles/PortalBundle/Controller/PagewidgetController.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ninegate-1.0/src/Cadoles/PortalBundle/Controller/PagewidgetController.php b/src/ninegate-1.0/src/Cadoles/PortalBundle/Controller/PagewidgetController.php index a3c79a01..38bd438c 100644 --- a/src/ninegate-1.0/src/Cadoles/PortalBundle/Controller/PagewidgetController.php +++ b/src/ninegate-1.0/src/Cadoles/PortalBundle/Controller/PagewidgetController.php @@ -1865,6 +1865,10 @@ class PagewidgetController extends Controller } } + // Trier les item par title + $title = array_column($items, 'title'); + array_multisort($title, SORT_ASC, $items); + // Render return $this->render($this->labelentity.':viewappexternal.html.twig', [ 'entity' => $entity,