Skip to content
This repository has been archived by the owner on Jan 15, 2022. It is now read-only.

add defaultSortFunction #352

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

add defaultSortFunction #352

wants to merge 1 commit into from

Conversation

ernestrc
Copy link

AFAIK, there's no mechanism to override default sorting function in https://github.com/glittershark/reactable/blob/master/src/reactable/table.jsx#L311. This becomes a problem if for example, the column names are not known (generated dynamically), but client needs to pass a custom sorting function.

I need this for a project. I figured it might be useful for other people as well. Feel free to close PR if that's not the case.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant