select data and sort by a to z in laravel code example Example: laravel eloquent order by alphabetical order $items = Item::orderBy('name')->get();