Implemented sorting transactions descending by value date
This commit is contained in:
parent
0d1ecb910c
commit
4461d0d931
|
@ -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 ?? "")
|
||||||
|
|
Loading…
Reference in New Issue