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
Try this:
$em = $this->getDoctrine()->getManager(); $entities = $em->getRepository('MyBundle:MyTable')->findBy(array(), array('username' => 'ASC'));