diff --git a/core/src/main/java/org/apache/hop/core/database/DatabaseMetaInformation.java b/core/src/main/java/org/apache/hop/core/database/DatabaseMetaInformation.java index c051b136d3d..a8ee151b11c 100644 --- a/core/src/main/java/org/apache/hop/core/database/DatabaseMetaInformation.java +++ b/core/src/main/java/org/apache/hop/core/database/DatabaseMetaInformation.java @@ -235,6 +235,10 @@ public void getData(ILoggingObject parentLoggingObject, IProgressMonitor monitor // Ignore it to avoid excessive spamming } + + // Sort the schemas by names + Collections.sort(schemaList, (s1, s2) -> {return s1.getSchemaName()==null ? -1:s1.getSchemaName().compareToIgnoreCase(s2.getSchemaName());}); + // Save for later... setSchemas(schemaList.toArray(new Schema[schemaList.size()])); }