Implemented sorting bookedTransactions

This commit is contained in:
dankl 2019-10-13 19:06:39 +02:00 committed by dankito
parent 098834dbe5
commit be0b4f597a
1 changed files with 4 additions and 1 deletions

View File

@ -130,7 +130,10 @@ open class FinTsClient(
response.getFirstSegmentById<ReceivedAccountTransactions>(InstituteSegmentId.AccountTransactionsMt940)?.let { transactions -> response.getFirstSegmentById<ReceivedAccountTransactions>(InstituteSegmentId.AccountTransactionsMt940)?.let { transactions ->
return GetTransactionsResponse(response, transactions.bookedTransactions, transactions.unbookedTransactions, balance) return GetTransactionsResponse(response,
transactions.bookedTransactions.sortedByDescending { it.bookingDate },
transactions.unbookedTransactions,
balance)
} }
return GetTransactionsResponse(response) return GetTransactionsResponse(response)