From df032c3d51907581dca82be7718c45df6673eb7b Mon Sep 17 00:00:00 2001 From: shikha0203 Date: Wed, 1 Mar 2023 15:15:03 +0000 Subject: Sort properties in node filter modal Issue-ID: SDC-4422 Signed-off-by: shikha0203 Change-Id: I1708091e4bf046e279fe1b675954e1ab367975c9 --- .../service-dependencies-editor.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/catalog-ui/src/app/ng2/pages/service-dependencies-editor/service-dependencies-editor.component.ts b/catalog-ui/src/app/ng2/pages/service-dependencies-editor/service-dependencies-editor.component.ts index a0a30c5f31..5666bf595b 100644 --- a/catalog-ui/src/app/ng2/pages/service-dependencies-editor/service-dependencies-editor.component.ts +++ b/catalog-ui/src/app/ng2/pages/service-dependencies-editor/service-dependencies-editor.component.ts @@ -122,7 +122,7 @@ export class ServiceDependenciesEditorComponent implements OnInit { } else { selectLabel = 'Select'; } - this.servicePropertyDropdownList = [new DropdownValue(undefined, selectLabel), ...propertyList.map(prop => new DropdownValue(prop.name, prop.name))]; + this.servicePropertyDropdownList = [new DropdownValue(undefined, selectLabel), ...propertyList.map(prop => new DropdownValue(prop.name, prop.name)).sort((prop1, prop2) => prop1.value.localeCompare(prop2.value))]; } private initConstraintOperatorOptions(): void { -- cgit 1.2.3-korg