We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a0ea48 commit 592bbfeCopy full SHA for 592bbfe
Sources/Grodt/DTOs/DTOMappers/InvestmentDTOMapper.swift
@@ -53,7 +53,9 @@ class InvestmentDTOMapper {
53
)
54
}
55
56
- return investments
+ return investments.sorted { lft, rgh in
57
+ lft.totalReturn > rgh.totalReturn
58
+ }
59
60
61
func investmentDetail(from transactions: [Transaction])async throws -> InvestmentDetailDTO {
0 commit comments