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
This works for me:
$entities = $em->getRepository('MyBundle:MyTable')->findBy(array(),array('name' => 'ASC'));
Keeping the first array empty fetches back all data, it worked in my case.