9e7e79390a
The main benefit of this is allowing the sort order to be controlled by fields that don't necessarily need to be printed: ./scripts/csv.py input.csv -ba -sb -fc By default this sorts lexicographically, but this can be changed by providing an expression: ./scripts/csv.py input.csv -ba -sb='int(b)' -fc Note that sort fields do _not_ change inferred by fields, this allows sort flags to be added to existing queries without changing the results too much: ./scripts/csv.py input.csv -fc ./scripts/csv.py input.csv -sb -fc