Sort properties in node filter modal 05/133505/2
authorshikha0203 <shivani.khare@est.tech>
Wed, 1 Mar 2023 15:15:03 +0000 (15:15 +0000)
committerMichael Morris <michael.morris@est.tech>
Wed, 1 Mar 2023 17:22:26 +0000 (17:22 +0000)
Issue-ID: SDC-4422
Signed-off-by: shikha0203 <shivani.khare@est.tech>
Change-Id: I1708091e4bf046e279fe1b675954e1ab367975c9

catalog-ui/src/app/ng2/pages/service-dependencies-editor/service-dependencies-editor.component.ts

index a0a30c5..5666bf5 100644 (file)
@@ -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 {