]> gitweb.michael.orlitzky.com - mailshears.git/blobdiff - lib/common/domain.rb
Allow sorting of User/Domain for testing.
[mailshears.git] / lib / common / domain.rb
index 5fb345bb2f779f642dbb7254f4d078fe1745d536..ec4fecf35ee579cda7be81abbf8e50a9ec6f2ce5 100644 (file)
@@ -20,4 +20,8 @@ class Domain
   def ==(other)
     return self.to_s() == other.to_s()
   end
+
+  def <=>(other)
+    return self.to_s() <=> other.to_s()
+  end
 end