From f4ade09be3e925b6ad595fb964f7d9c7ad3a9699 Mon Sep 17 00:00:00 2001 From: Chris Francy Date: Tue, 12 Apr 2022 13:37:49 -0700 Subject: [PATCH] add a ksort, so that repository index is ordered --- src/App/Controller/Repository.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/App/Controller/Repository.php b/src/App/Controller/Repository.php index 55ce0195..aebb473d 100644 --- a/src/App/Controller/Repository.php +++ b/src/App/Controller/Repository.php @@ -21,6 +21,8 @@ public function list(): Response { $repositories = $this->index->getRepositories(); + ksort($repositories); + return new Response($this->templating->render('Repository/list.html.twig', [ 'repositories' => $repositories, ]));