當我使用這個功能:如何教義使用排序依據與findBY功能
$TopItemList = $app['orm.em']->getRepository('\Eccube\Entity\Product')
->findBy(array('name' => array('booktest1', 'booktest2', 'booktest3')));
但我想在「名稱」命令的結果:「booktest1」,「booktest2」,「booktest3」,因爲現在的訂單是'booktest3','booktest1','booktest2'。我不知道怎麼用「orderby」。
幫助我們提供幫助a [如何創建一個最小,完整和可驗證的示例](http://stackoverflow.com/help/mcve)。 – kittikun
你想按'name'字段排列結果嗎? – scoolnico