You can actually do this within the query.
$results = Project::orderBy('name')->get();
This will return all results with the proper order.
You can actually do this within the query.
$results = Project::orderBy('name')->get();
This will return all results with the proper order.