react-bootstrap-table2 icon indicating copy to clipboard operation
react-bootstrap-table2 copied to clipboard

Is there a way of exporting all of the table data into CSV and keeping the sort by column order

Open tommipal opened this issue 5 years ago • 1 comments

Question Is there currently a way of exporting all of the table data into CSV and keeping the sort order? For example If I sort a table by column and then export it, the data in the CSV will be in the initial order. It was mentioned in #1108 Can you export the csv after sorting the table and have the csv display the sorted table? that exportAll: false will make the data keep the sorting by column, but is there some alternative to achieve the same while keeping the exportAll: true?

tommipal avatar Jun 17 '20 11:06 tommipal

Hi @tommipal ,

I have a workaround which you can find using this link.

https://github.com/react-bootstrap-table/react-bootstrap-table2/issues/1108#issuecomment-1252774263

ghost avatar Sep 20 '22 18:09 ghost