Column Sort does not reset when column is hidden in Table View #2272
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
When viewing tasks in Table view, the UI allows you to sort the table by column. If there is a sort applied on one column (even a hidden column), clicking to apply a sort on another column appears to create a multi-level sort. Most of the time, this is undesirable in my view, but I will address this in a comment.
BUG:
If there is a sort applied to a column, and that column is hidden, I assert that it is a bug that the sort status for that column is not reset to default.
Vikunja Version
Demo Site v0.23.0+526-392ce66edb
Browser and version
Firefox 124.0.2, Chrome 123.0.6312.123, Edge 123.0.2420.97
Can you reproduce the bug on the Vikunja demo site?
Yes
Screenshots
Sort By Column (# column used here)
Hide that Column
Try To Apply Another Sort (Due Date used here)
Notice that the filter is not applied, or is applied "under" the first filter.
Do you feel like an adequate solution here would be to remove the sorting when the column is hidden?
Related forum discussion: https://community.vikunja.io/t/feature-add-option-to-disable-multi-level-sort-in-table-view/2262/2
Yes, I think removing the sorting when column is hidden would completely fix the (what I view as a) bug.
As you can see from my discussion post you linked, I also have some other opinions about sorting, but those felt more like "Feature Requests" than a bug, because I assumed multi-level sort was currently the intended design.
This should now be fixed in
d86fdcb756
, please check with the next unstable build (should be ready for deployment in ~45min, also on try).