Dash Table: Changing first click on sort arrow behavior

Hi everyone!

I just wanted to ask if it’s possible to change the order in which the sorting is applied in dash table. Currently, the first click on a sorting arrow applies an ascending sort with that column, the second one does a descending sort and the third one just clears the sorting.

So would it be possible to make the first click apply a descending sort instead? It would be neat if this could be specified per column.

Thank you very much!

That’s a really good idea @Jendoliver - we don’t do this now but I can see it would be useful. Would you post this at https://github.com/plotly/dash-table/issues/new ?

Sorry for the late response @alexcjohnson, didn’t enter the forum for a while as this wasn’t that much of a critical feature for me, wasn’t expecting such a quick response and I ended up forgetting about the topic :sweat_smile:

I’ll do as you said and post it there, hopefully this can be helpful to other people as well.

Thank you again!