From 2e23d46c7197323402715103ee083fbd88c2fa2e Mon Sep 17 00:00:00 2001 From: yarik Date: Mon, 26 Jun 2017 11:39:28 +0300 Subject: [PATCH] [Parameter Hints Settings] sort languages alphabetically in hints settings dialog --- .../hints/settings/ParameterNameHintsConfigurable.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/hints/settings/ParameterNameHintsConfigurable.java b/platform/lang-impl/src/com/intellij/codeInsight/hints/settings/ParameterNameHintsConfigurable.java index 5354b9b4abce..51aa889a76d2 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/hints/settings/ParameterNameHintsConfigurable.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/hints/settings/ParameterNameHintsConfigurable.java @@ -393,7 +393,7 @@ public class ParameterNameHintsConfigurable extends DialogWrapper { .getHintProviders() .stream() .map((langWithImplementation) -> langWithImplementation.getFirst()) - .sorted(Comparator.comparingInt(l -> l.getDisplayName().length())) + .sorted(Comparator.comparing(l -> l.getDisplayName())) .collect(Collectors.toList()); }