sort Giftcards alphabetically (#469)

This commit is contained in:
Serhii
2022-08-30 15:14:05 +01:00
committed by GitHub
parent 4a5747c630
commit 5fcbf3634b
@@ -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;
});
}