Feature: order upload transaction preview by date descending

Transaction previews on the upload page now display with newest transactions
first, making it easier to review recent imports at the top of the list.
This commit is contained in:
AJ
2025-11-16 11:54:13 -05:00
parent 51c2ce2965
commit e0638039d8

View File

@@ -316,7 +316,10 @@ namespace MoneyMap.Pages
addedInThisBatch.Add(key); addedInThisBatch.Add(key);
} }
return PreviewOperationResult.Success(previewItems); // Order by date descending (newest first)
var orderedPreview = previewItems.OrderByDescending(p => p.Transaction.Date).ToList();
return PreviewOperationResult.Success(orderedPreview);
} }
public async Task<ImportOperationResult> ImportAsync(List<Transaction> transactions) public async Task<ImportOperationResult> ImportAsync(List<Transaction> transactions)