sort Giftcards alphabetically (#469)

This commit is contained in:
Serhii 2022-08-30 17:14:05 +03:00 committed by GitHub
parent 4a5747c630
commit 5fcbf3634b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -87,6 +87,7 @@ abstract class IoniaGiftCardsListViewModelBase with Store {
void _getMerchants() {
ioniaService.getMerchantsByFilter(categories: selectedFilters).then((value) {
value.sort((a, b) => a.legalName.toLowerCase().compareTo(b.legalName.toLowerCase()));
ioniaMerchants = ioniaMerchantList = value;
});
}