Skip to content
This repository was archived by the owner on Jun 20, 2024. It is now read-only.

Commit d703924

Browse files
Merge pull request #1 from newsdev/feature/user-name-sort
user names now sorted by full_name
2 parents aee1c81 + e29baa8 commit d703924

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/controllers/pages_controller.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ def show
3434
# GET /pages/new
3535
def new
3636
@page = Page.new
37-
@users = User.all
37+
@users = User.all.sort_by { |obj| (obj.display_name.nil? ? 0 : obj.display_name.downcase) }
3838
@slack_integrations = SlackIntegration.all
3939
end
4040

4141
# GET /pages/1/edit
4242
def edit
43-
@users = User.all
43+
@users = User.all.sort_by { |obj| (obj.display_name.nil? ? 0 : obj.display_name.downcase) }
4444
@slack_integrations = SlackIntegration.all
4545
end
4646

0 commit comments

Comments
 (0)