react-bootstrap-table2
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
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?
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