# File lib/mongoid/document.rb, line 20 def <=>(other) attributes["_id"].to_s <=> other.attributes["_id"].to_s end