update reponse data order
This commit is contained in:
parent
cc41875ad2
commit
8cb9cd30bc
|
@ -144,7 +144,7 @@ class ApiController extends Controller {
|
|||
public function actionData() {
|
||||
if (Yii::$app->request->post()) {
|
||||
Yii::$app->response->format = "json";
|
||||
return ListManagement::find()->orderBy(['id' => SORT_DESC])->all();
|
||||
return ListManagement::find()->orderBy(['last_modified' => SORT_DESC])->all();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user