csvtotable icon indicating copy to clipboard operation
csvtotable copied to clipboard

Preserve row order of input file?

Open bgarchow opened this issue 7 years ago • 3 comments

Thanks for csvtotable! It works great except for one (minor) issue. The rows of my input files are sorted in a specific order but csvtotable appears to automatically (re)sort the data on the first column when generating the html table. Not a huge deal, but it would be nice to have the option to preserve the row order of the input file. Again, thanks for csvtotable!

bgarchow avatar Aug 23 '17 13:08 bgarchow

It wasn't intentional, will fix this behavior in upcoming release.

vividvilla avatar Aug 25 '17 14:08 vividvilla

Sorry I'm 3 years late - I was just wondering if you're able to help guide me to which section of the code I should update so that the row order is preserved. I'd be happy to do a fork and pull request. Thanks!

youyanggu avatar Jan 04 '21 23:01 youyanggu

I found the issue and made a patch. Pull request #33.

youyanggu avatar Jan 05 '21 09:01 youyanggu