Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Jan 15, 2022. It is now read-only.

add defaultSortFunction#352

Open
ernestrc wants to merge 1 commit into
glittershark:masterglittershark/reactable:masterfrom
ernestrc:feature/defaultSortFunctionCopy head branch name to clipboard
Open

add defaultSortFunction#352
ernestrc wants to merge 1 commit into
glittershark:masterglittershark/reactable:masterfrom
ernestrc:feature/defaultSortFunctionCopy head branch name to clipboard

Conversation

@ernestrc

Copy link
Copy Markdown

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.