transactions.html can edit though needs some kinda user feedback of the changed row or something...
All checks were successful
cicd / ci (push) Successful in 1m28s

This commit is contained in:
bel
2024-07-21 08:31:37 -06:00
parent d69de4da11
commit 518909b7f7
3 changed files with 32 additions and 10 deletions

View File

@@ -31,7 +31,10 @@ func (deltas Deltas) Transactions() Transactions {
slices.SortFunc(result, func(a, b Transaction) int {
if a[0].Date == b[0].Date {
return strings.Compare(a[0].Transaction, b[0].Transaction)
if a[0].Description == b[0].Description {
return strings.Compare(a[0].Transaction, b[0].Transaction)
}
return strings.Compare(a[0].Description, b[0].Description)
}
return strings.Compare(a[0].Date, b[0].Date)
})