# File model/model.rb, line 228 def <=>(other) raise "Operating on invalidated ingredient" if @id.nil? self.position <=> other.position end