diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-06-21 18:43:12 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-06-21 18:43:12 +0000 |
commit | 89edc4dd39419e9c044dac397f33cceb5acbb0dc (patch) | |
tree | aec7c780aa8dfa18a3f4fe7c556384e1c85bda1c /app/models/member.rb | |
parent | 3036eaba5238e68381dcfdbcdfc99c4c7e7c795a (diff) | |
download | redmine-89edc4dd39419e9c044dac397f33cceb5acbb0dc.tar.gz redmine-89edc4dd39419e9c044dac397f33cceb5acbb0dc.zip |
Sort members on all their roles.
git-svn-id: http://svn.redmine.org/redmine/trunk@14366 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/member.rb')
-rw-r--r-- | app/models/member.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/member.rb b/app/models/member.rb index 5dd04cc71..ef8c82a1e 100644 --- a/app/models/member.rb +++ b/app/models/member.rb @@ -64,7 +64,7 @@ class Member < ActiveRecord::Base end def <=>(member) - a, b = roles.sort.first, member.roles.sort.first + a, b = roles.sort, member.roles.sort if a == b if principal principal <=> member.principal |