Sha256: 9e6c12965854dcf23e9d03ff7267fa5a50632f4b31bf54cd444a4aaac0c34cce

Contents?: true

Size: 251 Bytes

Versions: 10

Compression:

Stored size: 251 Bytes

Contents

field = (ARGV.shift or '2').to_i

lines = $stdin.read.split("\n")
# leave the first lines

while l = lines.shift
	puts l
	break if l =~ /total/
end




puts lines.sort {|a,b| 
	a.split[field].to_f <=> b.split[field].to_f
}.reverse.join("\n")
	
	
	


Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
maruku-0.5.1 lib/sort_prof.rb
maruku-0.5.3 lib/sort_prof.rb
maruku-0.5.0 lib/sort_prof.rb
maruku-0.5.2 lib/sort_prof.rb
maruku-0.5.5 lib/sort_prof.rb
maruku-0.5.4 lib/sort_prof.rb
maruku-0.5.6 lib/sort_prof.rb
maruku-0.5.7 lib/sort_prof.rb
maruku-0.5.8 lib/sort_prof.rb
maruku-0.5.9 lib/sort_prof.rb