Skip to content

Commit 238d371

Browse files
Feature: Sort Users on Admin/Users by Administrators first (#5098)
1 parent 38b7b4b commit 238d371

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/Http/Controllers/Admin/UserController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ public function index(Request $request): View
5454
->groupBy('users.id')
5555
)
5656
->allowedFilters(['username', 'email', 'uuid'])
57+
->defaultSort('-root_admin')
5758
->allowedSorts(['id', 'uuid'])
5859
->paginate(50);
5960

0 commit comments

Comments
 (0)