Implemented sorting transactions descending by value date

This commit is contained in:
dankito 2020-07-17 23:13:08 +02:00
parent 0d1ecb910c
commit 4461d0d931
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ struct AccountTransactionsDialog: View {
var body: some View { var body: some View {
List(transactions, id: \.id) { transaction in List(transactions.sorted(by: { $0.valueDate.date > $1.valueDate.date } ), id: \.id) { transaction in
HStack { HStack {
VStack(alignment: .leading) { VStack(alignment: .leading) {
Text(transaction.bookingText ?? "") Text(transaction.bookingText ?? "")