dorian-sort-csv
Sort CSV rows by one or more keys.
Install
gem install dorian-sort-csvAlso included in the aggregate gem:
gem install dorianUsage
sort-csv [options] [file ...] key [key ...]Run sort-csv -h for generated option details and sort-csv -v for the installed version.
Notes
- Use
--headersfor headered CSV and--integers/-ifor numeric comparisons.
Examples
Sort by an integer id column
sort-csv --headers --integers users.csv id