main ← fix-tags-sort-alphabetically
opened 11:47PM - 28 Jan 26 UTC
Follow-up to #37339.
The previous fix addressed sorting when clicking the "so…rt by name" button, but missed the initialization path when the `tags_sort_alphabetically` site setting is enabled. Tags were still being sorted by `id` instead of `name` on initial page load.
This also adds tests for both sorting paths (site setting and manual toggle) to prevent regressions.
Ref - https://meta.discourse.org/t/394485