News for hackers. Stuff that matters.
Re:Show HN: Command Line Tool to Sort CSV and TSV Files by M... by sigil on Friday January 05, 2018 @03:13PM (#16081269)
I know the annoyance you're talking about, but I think you're better off wrapping sort(1) with something translates from column names to indexes. Among the reasons: sortcsv buffers all input into memory [1], while sort(1) uses a divide-and-conquer merge sort to avoid this.

[1] https://github.com/johnweldon/sortcsv/blob/55818bd8e5f9feecc...

Re:Show HN: Command Line Tool to Sort CSV and TSV Files by M... by johnweldon on Friday January 05, 2018 @03:16PM (#16081290)
That's a good point. I may consider a stand alone utility to wrap this[1] code that converts names to indexes.

[1] https://github.com/johnweldon/sortcsv/blob/master/main.go#L1...