如何在find()方法中添加多个字段进行排序?
我试过如下
$model::find()->orderBy([['id_date' => SORT_DESC],['item_no'=>SORT_ASC]);
关于
documentation:
$model::find()->orderBy([ 'id_date' => SORT_DESC,'item_no'=>SORT_ASC ]);