讨论数量:
$arr = collect($data)->sortBy('sort')->values()->all();
$attr = collect($data)->sortByDesc('sort')->values()->all();
$arr = collect($data)->sortBy('sort')->values()->all();
$attr = collect($data)->sortByDesc('sort')->values()->all();
推荐文章: