diff options
author | Dmitry Moskalchuk <dm@crystax.net> | 2013-02-16 19:11:36 +0400 |
---|---|---|
committer | Dmitry Moskalchuk <dm@crystax.net> | 2013-02-16 19:11:36 +0400 |
commit | 2a4ef0fe4941f6d17e22b8066a0fb9f6aabc2780 (patch) | |
tree | 919198d5bea41fc0e8d96581fc3ad38d9f03e206 /app | |
parent | fa3cc1dd24fed0cd3b041e469cada054fda479ab (diff) |
Sort groups alphabetically on dashboard page
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/dashboard_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/dashboard_controller.rb b/app/controllers/dashboard_controller.rb index f320e819e26..098b1cbb3e7 100644 --- a/app/controllers/dashboard_controller.rb +++ b/app/controllers/dashboard_controller.rb @@ -5,7 +5,7 @@ class DashboardController < ApplicationController before_filter :event_filter, only: :show def show - @groups = current_user.authorized_groups + @groups = current_user.authorized_groups.sort_by { |x| x.name } @has_authorized_projects = @projects.count > 0 @teams = current_user.authorized_teams @projects_count = @projects.count |