in reply to
Sort CSV file within Excel based on specific column
No need to open a CSV file in Excel. Use Text::CSV/Text::CSV_XS. Read read the lines, put then in a hash keyed by your sort column, sort the keys, and print the lines.
...put then in a hash keyed by your sort column...
Done this way, wouldn't the OP lose a csv row if two entries from the sort column are the same?
Used as intended
The most useful key on my keyboard
Used only on CAPS LOCK DAY
Never used (intentionally)
I don't use a keyboard
Results (466 votes),