Closed sgoodrow closed 6 years ago
Thank you for your pull request. We require contributors to sign our Contributor License Agreement here.
single-sort
working well
multi-sort
has a problem: default sort is not respecting the specified default sort order, only the column declaration order.
Enables default sorting by setting
column.defaultSortOrder
andcolumn.defaultSortDirection
.If the properties are not specified, there is no change:
In
single-sort
tables, setcolumn.defaultSortDirection = "asc" or "desc"
to enable default sorting:In
multi-sort
tables, setcolumn.defaultSortDirection = "asc" or "desc"
and setcolumn.defaultSortOrder = 1..n
to specify the sort priorities:This only changes initial sort order. Users can still change the sort behavior as before.