ordering activities by date

fix #15
This commit is contained in:
Julien Fastré 2016-06-07 13:58:53 +02:00
parent 3e3cf707de
commit dfaa4b0968

View File

@ -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(