unix sort -n -t“,” gives unexpected result
问题 unix numeric sort gives strange results, even when I specify the delimiter. $ cat example.csv # here's a small example 58,1.49270399401 59,0.000192136419373 59,0.00182092924724 59,1.49270399401 60,0.00182092924724 60,1.49270399401 12,13.080339685 12,14.1531049905 12,26.7613447051 12,50.4592437035 $ cat example.csv | sort -n --field-separator=, 58,1.49270399401 59,0.000192136419373 59,0.00182092924724 59,1.49270399401 60,0.00182092924724 60,1.49270399401 12,13.080339685 12,14.1531049905 12,26