kraibse / kraibse/obsidian-table-sorting

Column hierarchy breaks when adding new columns after sorting

Open
#28 1 comment 0 reactions 0 assignees View on GitHub
bug good first issue
Dominant language
TypeScript
Stars
95
Forks
2
PR merge metrics
No merged PRs in 30d

Description

I have a 3 column table. I want to sort on the 3rd column and then the 1st. I click in the 3rd column and select it. The application indicates that the column I selected is column 1, the first column, not the 3rd. Now I cannot select the 1st column. Clicking in any column gives me a menu that only has the option, "Deselect". This problem arose after I added columns to a table that had an existing, temporary, multicolumn sorting, then resetting the filters, because the new rows were not sorted, and trying to re-establish the previous sort order.
![Screenshot from 2024-08-30 15-03-03](https://github.com/user-attachments/assets/ded8e5dd-626e-4517-8b6b-150b7e61a21c)

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue in Obsidian by adding columns to an existing table, resetting filters, and rebuilding a multicolumn sort. Trace the sorting state and column-selection handling from the plugin entry points; done means the third column remains identified as column 3 and the first column can be selected afterward.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.