Commit 8e141623 authored by jplang's avatar jplang

Sort members on all their roles.

git-svn-id: e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 8465e260
......@@ -64,7 +64,7 @@ class Member < ActiveRecord::Base
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
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment