get all record order by in laravel code example Example: get all sort by laravel $results = Project::orderBy('name')->get();