zulip/web/shared/src
N-Shar-ma 4dc1b2f812 typeahead: Always show exact matches first for streams and users.
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.
2023-04-27 12:45:26 -07:00
..
fenced_code.ts ts: Convert fenced_code.js to TypeScript. 2023-04-25 09:31:15 -07:00
internal_url.js web: Move web app to ‘web’ directory. 2023-02-23 16:04:17 -08:00
internal_url.js.flow web: Move web app to ‘web’ directory. 2023-02-23 16:04:17 -08:00
poll_data.js eslint: Fix unicorn/prefer-spread. 2023-03-02 12:16:56 -08:00
poll_data.js.flow web: Move web app to ‘web’ directory. 2023-02-23 16:04:17 -08:00
resolved_topic.js web: Move web app to ‘web’ directory. 2023-02-23 16:04:17 -08:00
resolved_topic.js.flow web: Move web app to ‘web’ directory. 2023-02-23 16:04:17 -08:00
typeahead.js.flow web: Move web app to ‘web’ directory. 2023-02-23 16:04:17 -08:00
typeahead.ts typeahead: Always show exact matches first for streams and users. 2023-04-27 12:45:26 -07:00
typing_status.js web: Move web app to ‘web’ directory. 2023-02-23 16:04:17 -08:00
typing_status.js.flow web: Move web app to ‘web’ directory. 2023-02-23 16:04:17 -08:00