In 8.0.10 or newer You can specify the default sort order by following these steps:
- Find the
props.columns.active
object. - for every column you want sorted, locate the relevant object and set
props.columns.active.<desired_key>.sort
to the desired sort order. Also make sure to set any column you don’t want to sort by default to “none”. - Find the
props.activeSortOrder
array, and add an entry for each column you’d like to have sorted as part of the default appearance. for each entry, supply the desired key just as you identified the column in the previous step.
For my table, I have specified that displayPath
should be sorted first, and then priority
.