1
0
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:
Nicolas Constant 2024-03-07 01:17:04 -05:00
parent c0f84ddc11
commit c4de387f86

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