glideapps / glideapps/glide-data-grid

BUG: when a table is sorted using "sort ascending/descending", the row selections do not move to the new row positions

Open
#1,035 0 comments 4 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
5.3k
Forks
428
PR merge metrics
No merged PRs in 30d

Description

## Summary

When a table is sorted with the "sort ascending/descending" items in the context menu of a column, the row selections should update in a consistent manner.

However, after sorting the row selections stay in their old order, so the wrong set of rows are then selected.

## Example

Using the example on , suppose the first row is selected, in this case Gabriela:

![Image](https://github.com/user-attachments/assets/152d212b-5aff-41e4-a0a2-f3b6ec107865)

If one clicks "Sort ascending" on a column, Gabriela should should remain selected, but now a different person is selected:

![Image](https://github.com/user-attachments/assets/da2dc8c5-4c3d-4add-8262-0bd4d35cb91f)

Related issue in streamlit: https://github.com/streamlit/streamlit/issues/11345

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.