summaryrefslogtreecommitdiffstats
path: root/cds-ui/client/src/app/feature-modules/blueprint/select-template
diff options
context:
space:
mode:
authorArundathi Patil <arundpil@in.ibm.com>2019-05-27 15:14:14 +0530
committerArundathi Patil <arundpil@in.ibm.com>2019-05-27 15:14:37 +0530
commitb0bda9b6310a84ce00a747926c78b04b66eac8ae (patch)
tree0fcde175cc5f0ccfe2673ec8efa130220c87a39c /cds-ui/client/src/app/feature-modules/blueprint/select-template
parent1f69e1c3569196305c23f085cfbc03bdba14f4e0 (diff)
CCSDK-1308- Files sorting
Files are now sorted in ascending order Issue-ID: CCSDK-1308 Change-Id: I4143a132a946815363f1c80b6ab37b6590ee242c Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
Diffstat (limited to 'cds-ui/client/src/app/feature-modules/blueprint/select-template')
-rw-r--r--cds-ui/client/src/app/feature-modules/blueprint/select-template/search-template/search-template.component.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/cds-ui/client/src/app/feature-modules/blueprint/select-template/search-template/search-template.component.ts b/cds-ui/client/src/app/feature-modules/blueprint/select-template/search-template/search-template.component.ts
index c232414e0..92003c919 100644
--- a/cds-ui/client/src/app/feature-modules/blueprint/select-template/search-template/search-template.component.ts
+++ b/cds-ui/client/src/app/feature-modules/blueprint/select-template/search-template/search-template.component.ts
@@ -29,6 +29,7 @@ import { IBlueprintState } from '../../../../common/core/store/models/blueprintS
import { IAppState } from '../../../../common/core/store/state/app.state';
import { LoadBlueprintSuccess, SET_BLUEPRINT_STATE, SetBlueprintState } from '../../../../common/core/store/actions/blueprint.action';
import { json } from 'd3';
+import { SortPipe } from '../../../../common/shared/pipes/sort.pipe';
@Component({
selector: 'app-search-template',
@@ -116,6 +117,7 @@ export class SearchTemplateComponent implements OnInit {
if(this.validfile) {
this.fetchTOSACAMetadata();
+ this.paths = new SortPipe().transform(this.paths, 'asc', 'name');
this.tree = this.arrangeTreeData(this.paths);
} else {
alert('Please update proper file with TOSCA metadata');