如何在find()方法中添加多个字段进行排序?
我试过如下
$model::find()->orderBy([['id_date' => SORT_DESC],['item_no'=>SORT_ASC]);
关于
documentation:
原文链接:https://www.f2er.com/php/133579.html$model::find()->orderBy([ 'id_date' => SORT_DESC,'item_no'=>SORT_ASC ]);