summaryrefslogtreecommitdiffstats
path: root/app/models/group.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-06-28 08:39:31 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-06-28 08:39:31 +0000
commit818e3fe01d55f0545cd6e3c6e1c0b82be89196c0 (patch)
treea83bcc10ace54c92b761f534acfb54198a873edc /app/models/group.rb
parent27895ec8d23113c946aeeced7ff419e9f3406719 (diff)
downloadredmine-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.rb2
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')}