class Fixnum
	def <=>(i)
		i.to_s<=>self.to_s
	end
end

p [50, 2, 1, 9].sort.join
