orderby和sortable同时使用的问题
laravel-admin使用的时候对model数据进行排序
$grid->model()->latest();
$grid->model()->where('status', 1)->orderby('created_at','desc');
但是使用上面两种排序以后,对其它列使用sortable的时候,会失效
$grid->model()->where('status', 1)->orderby('created_at','desc');
$grid->id('Id')->sortable();
需要使用orderBy
$grid->model()->where('status', 1)->orderBy('created_at','desc');
$grid->id('Id')->sortable();