mwouts / itables

Pandas DataFrames as Interactive DataTables
https://mwouts.github.io/itables/
MIT License
757 stars 56 forks source link

Is there a way to specify which column is initially sorted ... #25

Closed brianminsk closed 3 years ago

brianminsk commented 3 years ago

... for example, if I want the table to initially appear reverse sorted on the 2nd column?

mwouts commented 3 years ago

Hi @brianminsk , well the order argument from datatable.net seems to work nicely:

image

brianminsk commented 3 years ago

Great, thank you very much. I'm new to iTables and didn't understand that I could use DataTables options.

mwouts commented 3 years ago

You're welcome! Thanks for asking BTW - I'm sure that having this issue documented will help someone else!