I am using the findBy() method on a Doctrine repository:
findBy()
$entities = $repository->findBy(array(\'type\'=> \'C12\'));
How can
The second parameter of findBy is for ORDER.
findBy
$ens = $em->getRepository('AcmeBinBundle:Marks') ->findBy( array('type'=> 'C12'), array('id' => 'ASC') );