如何在Doctrine中使用findBy()来sorting结果
我在Doctrine存储库上使用findBy()方法: 
 $entities = $repository->findBy(array('type'=> 'C12')); 
我如何订购结果?
  findBy的第二个参数是ORDER。 
 $ens = $em->getRepository('AcmeBinBundle:Marks') ->findBy( array('type'=> 'C12'), array('id' => 'ASC') ); 
 $ens = $em->getRepository('AcmeBinBundle:Marks') ->findBy( array(), array('id' => 'ASC') ); 
 $cRepo = $em->getRepository('KaleLocationBundle:Country'); // Leave the first array blank $countries = $cRepo->findBy(array(), array('name'=>'asc'));