sort list in alphabetical order, fix #633

This commit is contained in:
Nicolas Constant 2024-03-07 01:17:04 -05:00
parent c0f84ddc11
commit c4de387f86
1 changed files with 11 additions and 0 deletions

View File

@ -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 => {
this.notificationService.notifyHttpError(err, this.account.info);
});