Adds a scope for sorting groups.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9947 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user