# File lib/rbrainz/model/scored_collection.rb, line 43 def <=>(other) if self.score.nil? && other.score.nil? return self.entity <=> other.entity end return -1 if self.score.nil? return 1 if other.score.nil? return self.score <=> other.score end