Add ability to soft by indicators
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Advanced/WalletCoins/WalletCoinsViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Advanced/WalletCoins/WalletCoinsViewModel.cs
@@ -137,8 +137,8 @@ public partial class WalletCoinsViewModel : RoutableViewModel
{
CanUserResizeColumn = false,
CanUserSortColumn = true,
- CompareAscending = WalletCoinViewModel.SortAscending(x => x.CoinJoinInProgress),
- CompareDescending = WalletCoinViewModel.SortDescending(x => x.CoinJoinInProgress),
+ CompareAscending = WalletCoinViewModel.SortAscending(x => GetOrderingPriority(x)),
+ CompareDescending = WalletCoinViewModel.SortDescending(x => GetOrderingPriority(x)),
},
width: new GridLength(0, GridUnitType.Auto)),
@@ -195,6 +195,26 @@ public partial class WalletCoinsViewModel : RoutableViewModel
.DisposeWith(disposables);
}
+ private static int GetOrderingPriority(WalletCoinViewModel x)
+ {
+ if (x.Confirmed)
+ {
+ return 1;
+ }
+
+ if (x.CoinJoinInProgress)
+ {
+ return 2;
+ }
+
+ if (x.IsBanned)
+ {
+ return 3;
+ }
+
+ return 0;
+ }
+
private ICoinsView GetCoins()
{
return _walletViewModel.Wallet.Coins;

Add ability to soft by indicators