Skip to content

Commit

Permalink
Issue #174: Order Organizations By Title
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdankharchenko committed Aug 22, 2023
1 parent fe0b553 commit d93f6a7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Http/Controllers/OrgsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class OrgsController extends Controller
public function index()
{
$activeOrgs = Org::with('category')
->orderBy('title')
->get()
->sortBy(function (Org $org) {
return $org->category->isInactive()
Expand Down

0 comments on commit d93f6a7

Please sign in to comment.