diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-06-28 08:39:31 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-06-28 08:39:31 +0000 |
commit | 818e3fe01d55f0545cd6e3c6e1c0b82be89196c0 (patch) | |
tree | a83bcc10ace54c92b761f534acfb54198a873edc /app/models/group.rb | |
parent | 27895ec8d23113c946aeeced7ff419e9f3406719 (diff) | |
download | redmine-818e3fe01d55f0545cd6e3c6e1c0b82be89196c0.tar.gz redmine-818e3fe01d55f0545cd6e3c6e1c0b82be89196c0.zip |
Fixed group sorted scope order (#20066).
git-svn-id: http://svn.redmine.org/redmine/trunk@14380 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/group.rb')
-rw-r--r-- | app/models/group.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/group.rb b/app/models/group.rb index 279e145ed..8c683305e 100644 --- a/app/models/group.rb +++ b/app/models/group.rb @@ -32,7 +32,7 @@ class Group < Principal before_destroy :remove_references_before_destroy - scope :sorted, lambda { order(:type => :asc, :lastname => :desc) } + scope :sorted, lambda { order(:type => :asc, :lastname => :asc) } scope :named, lambda {|arg| where("LOWER(#{table_name}.lastname) = LOWER(?)", arg.to_s.strip)} scope :givable, lambda {where(:type => 'Group')} |