]> gitweb.michael.orlitzky.com - mailshears.git/blobdiff - lib/common/user.rb
Allow sorting of User/Domain for testing.
[mailshears.git] / lib / common / user.rb
index bb239d13400473b30e15408c63149cc2a8b103e8..f67d0443da1180fa2b9ffc3778542b0e0feb8bf4 100644 (file)
@@ -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