sortbyDesc na kolekcji laravel
$response = $f_games->merge($s_games)->sortByDesc('id')->values();
Attractive Ape
$response = $f_games->merge($s_games)->sortByDesc('id')->values();
$collection = collect([5, 3, 1, 2, 4]);
$sorted = $collection->sort();
$sorted->values()->all();
// [1, 2, 3, 4, 5]