Skip to content
Snippets Groups Projects
Unverified Commit 0b27a96f authored by Alexander Polyankin's avatar Alexander Polyankin Committed by GitHub
Browse files

Do not sort suggested columns, metrics, segments by name (#40636)

parent 3fbfeddf
Branches
Tags
No related merge requests found
......@@ -153,6 +153,7 @@ export function suggest({
})),
);
}
suggestions = _.sortBy(suggestions, "text");
}
if (_.last(matchPrefix) !== "]") {
......@@ -246,11 +247,9 @@ export function suggest({
suggestions = suggestions.filter(suggestion => suggestion.range);
// deduplicate suggestions and sort by type then name
// deduplicate suggestions
suggestions = _.chain(suggestions)
.uniq(suggestion => suggestion.text)
.sortBy("text")
.sortBy("order")
.value();
// the only suggested function equals the prefix match?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment