Table component: Update docs and add prop for default column sorting
Now that we are implementing sortable columns in GitLab via sortable: true
, there are a few things that could help future implementations of this component when sorting.
- Add docs for how to do sorting
- Add a prop for
defaultColumn
, since there's some logic that could be extracted out
Here is the MR where the sort component is implemented for reference: gitlab!32478 (merged)