#!/usr/bin/ruby -w# answer: http://o...content-available-to-author-only...e.jp/qa/q7007816.html puts ARGF.sort_by{|line|line.split("\t").map(&:to_i)}
56 1324 15 5634 24 4446 24 3287 3 9999 56 5465 56 7544 24 8357 3 1
3 1 3 9999 15 5634 24 3287 24 4446 24 8357 56 1324 56 5465 56 7544
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!