Merge pull request #123 from sartography/chore/sort-libaries-A-Z
Fixes #580 - Sort Libraries Alphabetically
This commit is contained in:
commit
f8de3e8bb3
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue