Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Moskalchuk <dm@crystax.net>2013-02-16 19:11:36 +0400
committerDmitry Moskalchuk <dm@crystax.net>2013-02-16 19:11:36 +0400
commit2a4ef0fe4941f6d17e22b8066a0fb9f6aabc2780 (patch)
tree919198d5bea41fc0e8d96581fc3ad38d9f03e206 /app/controllers/dashboard_controller.rb
parentfa3cc1dd24fed0cd3b041e469cada054fda479ab (diff)
Sort groups alphabetically on dashboard page
Diffstat (limited to 'app/controllers/dashboard_controller.rb')
-rw-r--r--app/controllers/dashboard_controller.rb2
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