x軸の値によってsortをかける.
76 77 78
# File 'lib/shunkuntype/plot_data.rb', line 76 def sort @data.sort!{|x,y| x[0] <=> y[0]} end