Sorts files by name
This commit is contained in:
parent
165a6f06e6
commit
3c4ac7f4d8
|
@ -73,7 +73,7 @@ export class FileListComponent implements OnInit {
|
|||
|
||||
private _loadFileMetas() {
|
||||
this.api.getFileMetas({workflow_spec_id: this.workflowSpec.id}).subscribe(fms => {
|
||||
this.fileMetas = fms;
|
||||
this.fileMetas = fms.sort((a, b) => (a.name > b.name) ? 1 : -1);
|
||||
this._loadFileData();
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue