$users = DB::table('users')
-> orderBy('name', 'desc')
-> get();
// Make sure column names are correct
$inquiries = Inquiry::orderBy('status', 'ASC')
->orderBy('created_at', '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]
$posts = Post::orderBy('id', 'DESC')->get();
$inquiries = Inquiry::all()->sortByDesc('created_at')->sortByDesc('Status')->values();
$collection = collect([5, 3, 1, 2, 4]);
$sorted = $collection->sort();
$sorted->values()->all();
// [1, 2, 3, 4, 5]
$results = Project::orderBy('name')->get();