| 
					
				 | 
			
			
				@@ -12,7 +12,7 @@ class IndexController extends AbstractController 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     #[Route('/', name: 'app_index')] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     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', [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             'articles'  => $articles 
			 |