Commit 2a4ef0fe4941f6d17e22b8066a0fb9f6aabc2780
1 parent
fa3cc1dd
Exists in
master
and in
4 other branches
Sort groups alphabetically on dashboard page
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/controllers/dashboard_controller.rb
... | ... | @@ -5,7 +5,7 @@ class DashboardController < ApplicationController |
5 | 5 | before_filter :event_filter, only: :show |
6 | 6 | |
7 | 7 | def show |
8 | - @groups = current_user.authorized_groups | |
8 | + @groups = current_user.authorized_groups.sort_by { |x| x.name } | |
9 | 9 | @has_authorized_projects = @projects.count > 0 |
10 | 10 | @teams = current_user.authorized_teams |
11 | 11 | @projects_count = @projects.count | ... | ... |