Files
  • main.rb
main.rb
1
2
3
4
items = [7,4,3,1,2]
items.sort!{|a,b| a-b }

puts items
ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-linux]