diff --git a/idea/src/org/jetbrains/kotlin/idea/framework/ui/ConfigureDialogWithModulesAndVersion.java b/idea/src/org/jetbrains/kotlin/idea/framework/ui/ConfigureDialogWithModulesAndVersion.java index 086f0973f26..cdb61b8ab55 100644 --- a/idea/src/org/jetbrains/kotlin/idea/framework/ui/ConfigureDialogWithModulesAndVersion.java +++ b/idea/src/org/jetbrains/kotlin/idea/framework/ui/ConfigureDialogWithModulesAndVersion.java @@ -48,6 +48,7 @@ import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.util.Collection; import java.util.Collections; +import java.util.Comparator; import java.util.List; import java.util.concurrent.TimeUnit; @@ -219,6 +220,7 @@ public class ConfigureDialogWithModulesAndVersion extends DialogWrapper { finally { urlConnection.disconnect(); } + Collections.sort(versions, VersionComparatorUtil.COMPARATOR.reversed()); // Handle the case when the new version has just been released and the Maven search index hasn't been updated yet if (!ConfigureKotlinInProjectUtilsKt.isEap(bundledRuntimeVersion) && !KotlinPluginUtil.isSnapshotVersion() &&