gregnb / gregnb/mui-datatables

Can I trigger the sort from another button, or on pageload?

Open
#898 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.7k
Forks
906
PR merge metrics
No merged PRs in 30d

Description

I have a React app where I'm showing data returned from an API in the table.
When the user sorts the data, and React re-renders, the sort is reset.
I can use a `customSort` and keep the `colIndex` and `order` in React state, but then I still need to be able to trigger the sort myself after re-rendering.
Is there a way to do this?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.