mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +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,
|
...beginswithCaseInsensitive,
|
||||||
].sort(sorting_comparator);
|
].sort(sorting_comparator);
|
||||||
return {
|
return {
|
||||||
matches: [...exactMatch, ...non_exact_sorted_matches],
|
matches: [...exactMatch.sort(sorting_comparator), ...non_exact_sorted_matches],
|
||||||
rest: noMatch.sort(sorting_comparator),
|
rest: noMatch.sort(sorting_comparator),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user