| 
														
															@@ -12,7 +12,7 @@ class IndexController extends AbstractController 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     #[Route('/', name: 'app_index')] 
														 | 
														
														 | 
														
															     #[Route('/', name: 'app_index')] 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     public function index(ArticleRepository $articleRepository): Response 
														 | 
														
														 | 
														
															     public function index(ArticleRepository $articleRepository): Response 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     { 
														 | 
														
														 | 
														
															     { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        $articles = $articleRepository->findBy(['state' => 'published']); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        $articles = $articleRepository->findBy(criteria: ['state' => 'published'], orderBy: ['publicationDate' => 'DESC']); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															         return $this->render('index/index.html.twig', [ 
														 | 
														
														 | 
														
															         return $this->render('index/index.html.twig', [ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             'articles'  => $articles 
														 | 
														
														 | 
														
															             'articles'  => $articles 
														 |