rearrange coin order

This commit is contained in:
ryleedavis 2023-06-08 10:54:22 -06:00
parent 53efdd7657
commit c4545c3eb0
2 changed files with 8 additions and 3 deletions

View file

@ -88,7 +88,12 @@ class Wallets extends ChangeNotifier {
result.add(Tuple2(coin, map[coin]!));
}
result.sort((a, b) => a.item1.prettyName.compareTo(b.item1.prettyName));
// result.sort((a, b) => a.item1.prettyName.compareTo(b.item1.prettyName));
result.sort((a, b) => a.item1.prettyName == "Bitcoin"
? -1
: b.item1.prettyName == "Monero"
? 1
: a.item1.prettyName.compareTo(b.item1.prettyName));
return result;
}

View file

@ -31,8 +31,9 @@ import 'package:stackwallet/services/coins/wownero/wownero_wallet.dart' as wow;
import 'package:stackwallet/utilities/constants.dart';
enum Coin {
banano,
bitcoin,
monero,
banano,
bitcoincash,
dogecoin,
eCash,
@ -40,7 +41,6 @@ enum Coin {
ethereum,
firo,
litecoin,
monero,
namecoin,
nano,
particl,