fix ordering of history list
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/HistoryViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/HistoryViewModel.cs
@@ -13,7 +13,6 @@ using DynamicData;
using DynamicData.Binding;
using NBitcoin;
using ReactiveUI;
-using WalletWasabi.Blockchain.Analysis.Clustering;
using WalletWasabi.Blockchain.Transactions;
using WalletWasabi.Fluent.Extensions;
using WalletWasabi.Fluent.Helpers;
@@ -229,7 +228,11 @@ public partial class HistoryViewModel : ActivatableViewModel
{
var historyBuilder = new TransactionHistoryBuilder(_walletViewModel.Wallet);
var rawHistoryList = await Task.Run(historyBuilder.BuildHistorySummary);
- var newHistoryList = GenerateHistoryList(rawHistoryList).ToArray();
+
+ // The original ordering prefers the txn block index more than the date so adjust it,
+ // as in the UI the date is more important.
+ var orderedRawHistoryList = rawHistoryList.OrderBy(x => x.Height).ThenBy(x => x.DateTime).ToList();
+ var newHistoryList = GenerateHistoryList(orderedRawHistoryList).ToArray();
_transactionSourceList.Edit(x =>
{

fix ordering of history list