Commit 2a4ef0fe4941f6d17e22b8066a0fb9f6aabc2780

Authored by Dmitry Moskalchuk
1 parent fa3cc1dd

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,7 +5,7 @@ class DashboardController < ApplicationController
5 before_filter :event_filter, only: :show 5 before_filter :event_filter, only: :show
6 6
7 def show 7 def show
8 - @groups = current_user.authorized_groups 8 + @groups = current_user.authorized_groups.sort_by { |x| x.name }
9 @has_authorized_projects = @projects.count > 0 9 @has_authorized_projects = @projects.count > 0
10 @teams = current_user.authorized_teams 10 @teams = current_user.authorized_teams
11 @projects_count = @projects.count 11 @projects_count = @projects.count