mirror of
https://github.com/sartography/cr-connect-bpmn.git
synced 2025-02-17 10:57:17 +00:00
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…
x
Reference in New Issue
Block a user