The sort method sorts the collection: $collection = collect([5, 3, 1, 2, 4]); $sorted = $collection->sort(); echo $sorted->values()->all(); returns : [1, 2, ...
確定! 回上一頁