I'm sure I did this in the past, and there is something small that I forget, but how can I sort the CSV file in a specific column? I'm interested in answers with and without third-party Perl modules. Mostly methods without, since I do not always have access to install additional modules.
Sample data:
name, 25, female
name, 24, male
name, 27, female
name, 21, male
Desired end result after sorting by second numeric column:
name, 21, male
name, 24, male
name, 25, female
name, 27, female
source share