Fixes #580 - Sort Libraries Alphabetically

This commit is contained in:
alicia pritchett 2022-01-05 13:51:38 -05:00
parent 31ea436e4e
commit 1e0798a55b
1 changed files with 2 additions and 0 deletions

View File

@ -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) {