lib/platform_dsl.rb
def favor_integer_sorting(a, b)
      if self.class.is_integer?(a) && self.class.is_integer?(b)
        a.to_i <=> b.to_i
      else
        a <=> b
      end
    end
# We may have versions with strings (e.g. "2008r2") that we can't ignore, so only use
# integer sorting when we know we have integer sorting (and this might need to be extended
# to be smarter at some point and have different functions for different platforms)
We may have versions with strings  that we can't ignore, so only use
integer sorting when we know we have integer sorting (and this might need to be extended
to be smarter at some point and have different functions for different platforms)
We may have versions with strings that we can ' t ignore so only use integer sorting when we know we have integer sorting ( and this might need to be extended to be smarter at some point and have different functions for different platforms )
def favor_integer_sorting(a, b)
      if self.class.is_integer?(a) && self.class.is_integer?(b)
        a.to_i <=> b.to_i
      else
        a <=> b
      end
    end
def favor_integer_sorting ( a , b ) if self . class . is_integer? ( a ) && self . class . is_integer? ( b ) a . to_i <=> b . to_i else a <=> b end end
We may have versions with strings (e.g.
We may have versions with strings ( e . g .
a
b