diff options
Diffstat (limited to 'catalog-model/src/main/java')
-rw-r--r-- | catalog-model/src/main/java/org/openecomp/sdc/be/model/operations/impl/ModelOperation.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/catalog-model/src/main/java/org/openecomp/sdc/be/model/operations/impl/ModelOperation.java b/catalog-model/src/main/java/org/openecomp/sdc/be/model/operations/impl/ModelOperation.java index 967ffdc711..095b4e1cef 100644 --- a/catalog-model/src/main/java/org/openecomp/sdc/be/model/operations/impl/ModelOperation.java +++ b/catalog-model/src/main/java/org/openecomp/sdc/be/model/operations/impl/ModelOperation.java @@ -193,6 +193,13 @@ public class ModelOperation { } }); } + toscaImportByModelList.sort((o1, o2) -> { + final int modelIdComparison = o1.getModelId().compareTo(o2.getModelId()); + if (modelIdComparison == 0) { + return o1.getFullPath().compareTo(o2.getFullPath()); + } + return modelIdComparison; + }); return toscaImportByModelList; } |