Commit 96f25f55 authored by yinxiaoling's avatar yinxiaoling

排序倒序

parent c6ce2765
......@@ -24,7 +24,7 @@ class StrategySetController extends Controller
public function index(){
try{
$projectArr = $this->getAllowProjects(1);
$strategyInfo = StrategySet::all()->toArray();
$strategyInfo = StrategySet::orderBy('created_at','desc')->get()->toArray();
$listInfo = [];
foreach ($strategyInfo as $k=>$v){
$projectSnTemp = explode("#", $v['project_sn']);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment