I\'ve been reading Doctrine\'s documentation, but I haven\'t been able to find a way to sort findAll() Results.
I\'m using symfony2 + doctrine, this is the statemen
You need to use a criteria, for example:
>, null, null ); $rep = $this->getDoctrine()->getManager()->getRepository('Bundle:Thing'); $things = $rep->matching($criteria); return $this->render('Bundle:Thing:things.html.twig', [ 'entities' => $things, ]); } }