Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Keep sorting order after changing row information #5792

Open
GSousaGabriel opened this issue Nov 5, 2024 · 0 comments
Open

[Feature] Keep sorting order after changing row information #5792

GSousaGabriel opened this issue Nov 5, 2024 · 0 comments

Comments

@GSousaGabriel
Copy link

I would like to discuss a new feature to keep the table with the same sorting data on screen after the user has changed the visible row information.
As it is, if you sort the column "numbers" as ASC:

numbers
1
2
6
10

and then change the value "2" to "8", for example, the table will refresh like this:

numbers
1
6
8
10

But, what I want is to keep it like it were with the new value:

numbers
1
8
6
10

A possible solution would be to implement a new parameter into the table to store the changed rows and a new function in getSortedRowModel where, before you return the sortedData, you would get these rows and place them in their original position.

The user would need to provide the table with the changed rows in order to use the feature, otherwise it would behave as usual.

@GSousaGabriel GSousaGabriel changed the title Keep sorting order after changing row information [Feature] Keep sorting order after changing row information Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant