喜欢钻研技术!
排序的方法:$customers = Customer::find()->where(['status' => 1])->orderBy('age desc')->all();
$customers = Customer::find()->where(['status' => 1])->orderBy('age desc')->all();