puts [56, 54, 5, 50,].sort { |a, b| b.to_s <=> a.to_s }.join.to_i >= [56,5,54,50].join.to_i
Standard input is empty
false
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!