mirror of
https://github.com/NicolasConstant/sengi
synced 2024-12-22 21:58:59 +01:00
sort list in alphabetical order, fix #633
This commit is contained in:
parent
c0f84ddc11
commit
c4de387f86
@ -122,6 +122,17 @@ export class MyAccountComponent implements OnInit, OnDestroy {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
.then(_ => {
|
||||||
|
this.availableLists.sort((a,b) => {
|
||||||
|
if (a.name < b.name) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
if (a.name > b.name) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
});
|
||||||
|
})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
this.notificationService.notifyHttpError(err, this.account.info);
|
this.notificationService.notifyHttpError(err, this.account.info);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user