diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-07-08 07:40:31 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-07-08 07:40:31 +0000 |
commit | 1c825df5492938882310a9e7d4081401e9e63c37 (patch) | |
tree | 057461f4d4acde5a8c1341f51d4f812b12753c04 /app/controllers/groups_controller.rb | |
parent | c11f5a23fee248fe12236585c6638d104e8fd80d (diff) | |
download | redmine-1c825df5492938882310a9e7d4081401e9e63c37.tar.gz redmine-1c825df5492938882310a9e7d4081401e9e63c37.zip |
Adds a scope for sorting groups.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9947 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/groups_controller.rb')
-rw-r--r-- | app/controllers/groups_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/groups_controller.rb b/app/controllers/groups_controller.rb index e1c13969d..244fa57b2 100644 --- a/app/controllers/groups_controller.rb +++ b/app/controllers/groups_controller.rb @@ -25,7 +25,7 @@ class GroupsController < ApplicationController helper :custom_fields def index - @groups = Group.find(:all, :order => 'lastname') + @groups = Group.sorted.all respond_to do |format| format.html |