Keep selected rows after sorting/filtering in data table

Hi,

How can I keep the selected rows after sorting/filtering in the data table? The application is when I select a row and I just sort based on a column, but I want to see where the selected row ends.

Hi, in the first example of https://dash.plot.ly/datatable/interactivity, if you select a row (with a tick mark) and then sort based on a column, then the row stays selected (with the tick mark). Is this what you want to do?

True, but this is only when filter_action=“native”,sort_action=“native”.

How can I have customized filter and sort (filter_action=“custom”,sort_action=“custom”) while not losing this properties?