Black Lives Matter. Please consider donating to Black Girls Code today.
Dash HoloViews is now available! Check out the docs.

Dash DataTable - sortColumn and sortDirection

Hello, I’m trying to use the sortColumn and sortDirection features of the DataTable, but I’m not clear which values I should be passing. Documentation says:

  • sortColumn (dict; optional)
  • sortDirection (dict; optional)

So would I pass something like {‘name’: ‘Column Name’} to sortColumn?
And is sortDirection looking for ‘asc’ and ‘desc’? What would that dict look like.

Thanks!

1 Like

Hi robeddy,

I’m looking into the exact same thing. Did you figure out how to use the sortColumn and sortDirection features appropriately? :slightly_smiling_face:

Nice avatar @robeddy :wink: