Sort groups alphabetically on dashboard page
This commit is contained in:
parent
fa3cc1dd24
commit
2a4ef0fe49
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue