From 89edc4dd39419e9c044dac397f33cceb5acbb0dc Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 21 Jun 2015 18:43:12 +0000 Subject: [PATCH] Sort members on all their roles. git-svn-id: http://svn.redmine.org/redmine/trunk@14366 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/member.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5