diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/dto/DtoFactory.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/dto/DtoFactory.java index d28f9d93a2..2039eab5a2 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/dto/DtoFactory.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/dto/DtoFactory.java @@ -4225,7 +4225,6 @@ public final class DtoFactory { } else { final List allowableValues = new ArrayList<>(); final List controllerServiceIdentifiers = new ArrayList<>(controllerServiceProvider.getControllerServiceIdentifiers(serviceDefinition, groupId)); - Collections.sort(controllerServiceIdentifiers, Collator.getInstance(Locale.US)); for (final String serviceIdentifier : controllerServiceIdentifiers) { final ControllerServiceNode service = controllerServiceProvider.getControllerServiceNode(serviceIdentifier); final boolean isServiceAuthorized = service.isAuthorized(authorizer, RequestAction.READ, NiFiUserUtils.getNiFiUser()); @@ -4236,6 +4235,7 @@ public final class DtoFactory { allowableValue.setValue(serviceIdentifier); allowableValues.add(entityFactory.createAllowableValueEntity(allowableValue, isServiceAuthorized)); } + allowableValues.sort(Comparator.comparing(e -> e.getAllowableValue().getDisplayName())); dto.setAllowableValues(allowableValues); } } else { @@ -4247,7 +4247,7 @@ public final class DtoFactory { allowableValueDto.setDescription(allowableValue.getDescription()); allowableValues.add(entityFactory.createAllowableValueEntity(allowableValueDto, true)); } - + allowableValues.sort(Comparator.comparing(e -> e.getAllowableValue().getDisplayName())); dto.setAllowableValues(allowableValues); }