$users = DB::table('users')
-> orderBy('name', 'desc')
-> get();
// Make sure column names are correct
$inquiries = Inquiry::orderBy('status', 'ASC')
->orderBy('created_at', 'DESC')
->get();
orderByRaw("FIELD(clan_rank , 'Owner', 'Admin', 'Member') ASC");
$posts = Post::orderBy('id', 'DESC')->get();
$collect = collect($query)->sortBy('name')
$inquiries = Inquiry::all()->sortByDesc('created_at')->sortByDesc('Status')->values();
$users = User::where('name','Joe')
->orderBy('id')
->get();
->orderBy('sort_filter')->orderByRaw('LCASE(sort_filter)')
->orderBy('sort_filter')->orderByRaw('LCASE(sort_filter)')
->orderBy('sort_filter')->orderByRaw('LCASE(sort_filter)')