mirror of
https://github.com/zulip/zulip.git
synced 2026-06-30 21:11:04 +08:00
We refactor the triage function to optionally take in a comparator function, and use this to sort the results, except any exact match, which is placed highest. Now we don't need to sort the results of triage for streams, languages and slash commands since we just pass in the comparator function. The overall effect is same as before, except that exact matches are always shown first. For users, we can't use the new triage feature to achieve this goal without sorting `rest` and breaking a key optimization, so we just add a bit of manual code for the job. Fixes: #25123. |
||
|---|---|---|
| .. | ||
| fenced_code.ts | ||
| internal_url.js | ||
| internal_url.js.flow | ||
| poll_data.js | ||
| poll_data.js.flow | ||
| resolved_topic.js | ||
| resolved_topic.js.flow | ||
| typeahead.js.flow | ||
| typeahead.ts | ||
| typing_status.js | ||
| typing_status.js.flow | ||