Skip to content

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

Open
@GSousaGabriel

Description

@GSousaGabriel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions