Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random column order? #37

Open
Abelhawk opened this issue May 29, 2019 · 3 comments
Open

Random column order? #37

Abelhawk opened this issue May 29, 2019 · 3 comments

Comments

@Abelhawk
Copy link

Hey, I was wondering what this library's algorithm is for ordering columns when exporting. On my end it seems to be random. Is there a way to assign a specific order for them to appear in in the CSV file?

@madhav5589
Copy link

@Abelhawk So far what I have observed is that column order is the order in which you define the columns and assigns the value to each column. If you want the columns in specific order, define them in the same order.
Hope it helps.

@drwharris
Copy link

It would be really nice if the parser followed the headers!

@CAspeling
Copy link

I've just run into this as well. It appears to be a javascript limitation. Easiest solution is to simply create a new array and as you construct it, insert data in desired order.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants