From 1e0798a55ba61f8c3e04a759e333dd0af8b6bb39 Mon Sep 17 00:00:00 2001 From: alicia pritchett Date: Wed, 5 Jan 2022 13:51:38 -0500 Subject: [PATCH] Fixes #580 - Sort Libraries Alphabetically --- src/app/workflow-spec-list/workflow-spec-list.component.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/workflow-spec-list/workflow-spec-list.component.ts b/src/app/workflow-spec-list/workflow-spec-list.component.ts index 6a58de8..5143b80 100644 --- a/src/app/workflow-spec-list/workflow-spec-list.component.ts +++ b/src/app/workflow-spec-list/workflow-spec-list.component.ts @@ -248,6 +248,8 @@ export class WorkflowSpecListComponent implements OnInit { private _loadWorkflowLibraries(selectedSpecName: string = null) { this.api.getWorkflowSpecificationLibraries().subscribe(wfs => { this.workflowLibraries = wfs; + // Sort libraries alphabetically + this.workflowLibraries.sort((a,b) => a.display_name.localeCompare(b.display_name)); // If selected spec is a library, set it. if (selectedSpecName) {