-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Fix table item list ordering #7366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix table item list ordering #7366
Conversation
fa84613
to
51a8351
Compare
51a8351
to
2cb97a0
Compare
@yoshiokatsuneo what is the difference from the user's perspective? I tried a simple query, and 3 clicks on the "date" column (sort asc, sort desc, default) seems to work the same as before SELECT 1 AS row, NULL AS date
UNION
SELECT 2, now() - interval '55 hours'
UNION
SELECT 3, now() - interval '1 day' |
The problem is not about sorting rows on each query's result table, but about sorting queries on query list page like below. ![]() |
Okay, but I still don't see incorrect results. Does this fix an error in sorting, or is this an internal code cleanup? |
This PR fix an error in sorting.
So, "sorting order" have 2-click cycle, but "triangle mark" have 3-click cycle. |
Aha! Tricky. Please add these bullet points to the commit message |
Never mind, I can update the commit message when merging |
@eradman Thanks a lot ! |
@yoshiokatsuneo thank you! i think i can finally create a PR for this #7117 |
@zachliu I think this PR was already merged, and the issue was already solved. |
@yoshiokatsuneo Sorry for the confusion—you misunderstood my earlier message. What I meant was that I had intended to make the |
@zachliu |
What type of PR is this?
Description
Ordering by clicking table column does not work well, as the sorting handled by toggling two status(on/off) on every click but actually the sorting have triple status ("asendant", "descendant", default).
This PR fixed the issue by using sorting status on Table component, instead of "guessing" the status from outside of component.
How is this tested?
Clicking table column changes the order as intended.