Merge pull request #123 from sartography/chore/sort-libaries-A-Z

Fixes #580 - Sort Libraries Alphabetically
This commit is contained in:
Dan Funk 2022-01-05 14:21:00 -05:00 committed by GitHub
commit f8de3e8bb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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) {