Object
Compare two Sort objects against each other, taking into consideration the direction of the sorting.
# File lib/mongoid/contexts/enumerable/sort.rb, line 21 def <=>(other) cmp = compare(value, other.value) ascending? ? cmp : cmp * -1 end
Generated with the Darkfish Rdoc Generator 2.