From dfaa4b096886b66ee8c1cd1ede2094ba57b14464 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Tue, 7 Jun 2016 13:58:53 +0200 Subject: [PATCH] ordering activities by date fix #15 --- Controller/ActivityController.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Controller/ActivityController.php b/Controller/ActivityController.php index da03b3150..f7a6dc80a 100644 --- a/Controller/ActivityController.php +++ b/Controller/ActivityController.php @@ -55,7 +55,10 @@ class ActivityController extends Controller $person->getCenter()); $activities = $em->getRepository('ChillActivityBundle:Activity') - ->findBy(array('person' => $person, 'scope' => $reachableScopes)); + ->findBy( + array('person' => $person, 'scope' => $reachableScopes), + array('date' => 'DESC') + ); return $this->render('ChillActivityBundle:Activity:list.html.twig', array(