Changing the order of columns in a CSV export
I am aware of a filter to reduce the number of columns in a CSV file but need some code to change the order of the columns.
Here is the link to the filter for reducing the columns. https://formidableforms.com/knowledgebase/frm_csv_columns/
Apparently something needs to be done with the array $headings. but I'm at a loss how to do this, or where.
If you've had success with this before I'd love to hear from you.