use sorted list
@@ -134,9 +134,10 @@ public class ApplicationBuilder {
this.documentsOnly = documentsOnly;
var list = new ArrayList<>(applicationPackage.getSchemas());
list.sort((a, b) -> a.getName().compareTo(b.getName()));
- for (NamedReader reader : applicationPackage.getSchemas())
+ for (NamedReader reader : list) {
addSchema(reader);
}
+ }
/**
* Adds a schema to this application.
