Sort history table labels column
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/HistoryItems/CoinJoinsHistoryItemViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/HistoryItems/CoinJoinsHistoryItemViewModel.cs
@@ -16,6 +16,7 @@ public class CoinJoinsHistoryItemViewModel : HistoryItemViewModelBase
CoinJoinTransactions = new List<TransactionSummary>();
Label = "Coinjoins";
FilteredLabel = new List<string>();
+ SortLabel = Label;
IsCoinJoin = true;
ShowDetailsCommand = ReactiveCommand.Create(() => RoutableViewModel.Navigate(NavigationTarget.DialogScreen).To(new CoinJoinDetailsViewModel(this)));

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/HistoryItems/HistoryItemViewModelBase.cs
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/HistoryItems/HistoryItemViewModelBase.cs
@@ -34,6 +34,8 @@ public abstract partial class HistoryItemViewModelBase : ViewModelBase
public List<string>? FilteredLabel { get; protected set; }
+ public string? SortLabel { get; protected set; }
+
public string? Label { get; protected set; }
public bool IsCoinJoin { get; protected set; }

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/HistoryItems/TransactionHistoryItemViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/HistoryItems/TransactionHistoryItemViewModel.cs
@@ -20,6 +20,7 @@ public class TransactionHistoryItemViewModel : HistoryItemViewModelBase
{
Label = transactionSummary.Label.Take(1).FirstOrDefault();
FilteredLabel = transactionSummary.Label.Skip(1).ToList();
+ SortLabel = string.Join(' ', transactionSummary.Label.ToArray());
IsConfirmed = transactionSummary.IsConfirmed();
Date = transactionSummary.DateTime.ToLocalTime();
Balance = balance;

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/HistoryViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/HistoryViewModel.cs
@@ -102,7 +102,9 @@ public partial class HistoryViewModel : ActivatableViewModel
options: new ColumnOptions<HistoryItemViewModelBase>
{
CanUserResizeColumn = false,
- CanUserSortColumn = false,
+ CanUserSortColumn = true,
+ CompareAscending = HistoryItemViewModelBase.SortAscending(x => x.SortLabel),
+ CompareDescending = HistoryItemViewModelBase.SortDescending(x => x.SortLabel),
MinWidth = new GridLength(100, GridUnitType.Pixel)
},
width: new GridLength(1, GridUnitType.Star)),

Sort history table labels column