X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mailshears.git;a=blobdiff_plain;f=lib%2Fcommon%2Fuser.rb;h=f67d0443da1180fa2b9ffc3778542b0e0feb8bf4;hp=bb239d13400473b30e15408c63149cc2a8b103e8;hb=30e96ed6093c479e7605b23a68aba7da11297679;hpb=a66e4a7e39518629981fa134456dc2ae6c461faf diff --git a/lib/common/user.rb b/lib/common/user.rb index bb239d1..f67d044 100644 --- a/lib/common/user.rb +++ b/lib/common/user.rb @@ -60,4 +60,8 @@ class User def ==(other) return self.to_s() == other.to_s() end + + def <=>(other) + return self.to_s() <=> other.to_s() + end end