diff --git a/app/Http/Controllers/OrgController.php b/app/Http/Controllers/OrgController.php index 2ced191..65a61f6 100644 --- a/app/Http/Controllers/OrgController.php +++ b/app/Http/Controllers/OrgController.php @@ -9,7 +9,7 @@ class OrgController extends Controller { public function index() { - $orgs = Org::all(['id', 'name', 'code']); + $orgs = Org::orderBy('name')->get(['id', 'name', 'code']); return response()->json($orgs); }