mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
typeahead: Sort exact matches too, in case there are multiple.
This commit is contained in:
@@ -155,7 +155,7 @@ export function triage<T>(
|
||||
...beginswithCaseInsensitive,
|
||||
].sort(sorting_comparator);
|
||||
return {
|
||||
matches: [...exactMatch, ...non_exact_sorted_matches],
|
||||
matches: [...exactMatch.sort(sorting_comparator), ...non_exact_sorted_matches],
|
||||
rest: noMatch.sort(sorting_comparator),
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user