http://qs321.pair.com?node_id=513043


in reply to sorting CSV files

Don't write a script, just use your *IX command line!

sort -n -t , -k 2 fileName.csv

Slightly expanded, that's

sort --numeric-sort --field-separator=, --key=2 fileName.csv

Of course, if you're on Windows...I'm sorry.