Sort quick action suggestions alphabetically

What does this MR do and why?

Sort the quick action suggestions seen before search in both markdown and rich text alphabetically, to make it easier for users to reason about and find what they need.

References

Screenshots or screen recordings

Scenario Before After
Markdown, suggestions Screenshot_2025-08-07_at_18.11.48 Screenshot_2025-08-07_at_18.08.03
Markdown, searching (no change) Screenshot_2025-08-07_at_18.54.51 Screenshot_2025-08-07_at_18.54.33
Rich text, suggestions Screenshot_2025-08-07_at_18.10.52 Screenshot_2025-08-07_at_18.10.18
Rich text, searching (no change) Screenshot_2025-08-07_at_18.47.24 Screenshot_2025-08-07_at_18.46.43

How to set up and validate locally

  1. Check out this branch
  2. Visit a work item or merge request and edit the description or add a new comment (contexts where quick actions can be used)
  3. using markdown, type / on a new line in the editor
  4. You will see alphabetically sorted suggestions
  5. type some search query
  6. you will see search results sorted by relevance (the same sort used on prod today)
  7. Repeat steps 3-6 using the rich text editor

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #481859 (closed)

Edited by Chad Lavimoniere

Merge request reports

Loading