feat(TagsList): sort tags alphabetically and update related logic #33
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fix(tags): display tags in alphabetical order
SUMMARY
Fixes inconsistent tag ordering by implementing alphabetical (case-insensitive) sorting in the
TagsListcomponent. Previously, tags appeared in unpredictable order as received from backend/state. The sorting is memoized for performance and automatically applied to all views.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before:
https://github.com/user-attachments/assets/0f3caa89-df53-4037-ad3a-3426b08d7f7a
After:
https://github.com/user-attachments/assets/521c13e9-3789-4144-b49c-a1e30e502766
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION
Technical Details:
superset-frontend/src/components/Tags/TagsList.tsxsortedTagscomputed value usinguseMemohooktoLowerCase()andlocaleCompare()for proper locale-aware ordering