$users = DB::table('users')
-> orderBy('name', 'desc')
-> get();
$response = $f_games->merge($s_games)->sortByDesc('id')->values();
$collection = collect([5, 3, 1, 2, 4]);
$sorted = $collection->sortDesc();
$sorted->values()->all();
// [5, 4, 3, 2, 1]
$collect = collect($query)->sortBy('name')
$users = User::where('name','Joe')
->orderBy('id')
->get();
$collection = collect([5, 3, 1, 2, 4]);
$sorted = $collection->sort();
$sorted->values()->all();
// [1, 2, 3, 4, 5]
->orderBy('sort_filter')->orderByRaw('LCASE(sort_filter)')
->orderBy('sort_filter')->orderByRaw('LCASE(sort_filter)')
->orderBy('sort_filter')->orderByRaw('LCASE(sort_filter)')