Description
In the Shapash webapp, the table supports sorting on all columns. However, after applying a sort, clicking on a table row does not display the plot corresponding to the selected row.
The plot seems to be generated using the original row index, not the sorted row index, which results in a mismatch between the selected table row and the displayed visualization.
Steps to Reproduce
- Open the Shapash webapp.
- Navigate to a view containing a sortable table.
- Sort the table by any column.
- Click on a row in the sorted table.
- Observe that the displayed plot does not match the selected row.