0.0
The project is in a healthy, maintained state
sorts csv by keys
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

>= 3.3.6, < 4
>= 2.0.1, < 3
 Project Readme

dorian-sort-csv

Sort CSV rows by one or more keys.

Install

gem install dorian-sort-csv

Also included in the aggregate gem:

gem install dorian

Usage

sort-csv [options] [file ...] key [key ...]

Run sort-csv -h for generated option details and sort-csv -v for the installed version.

Notes

  • Use --headers for headered CSV and --integers/-i for numeric comparisons.

Examples

Sort by an integer id column

sort-csv --headers --integers users.csv id