🐛 (Account Item) Sort
This commit is contained in:
@@ -94,7 +94,7 @@ class TransactionService {
|
|||||||
> = await couchService.getByPrefix<ITransaction>(`tra-${accountId}`)
|
> = await couchService.getByPrefix<ITransaction>(`tra-${accountId}`)
|
||||||
const transactions = response.rows.map((row) => row.doc) as ITransaction[]
|
const transactions = response.rows.map((row) => row.doc) as ITransaction[]
|
||||||
return transactions.sort((a: ITransaction, b: ITransaction) =>
|
return transactions.sort((a: ITransaction, b: ITransaction) =>
|
||||||
a.date <= b.date ? -1 : 1
|
a.date < b.date ? -1 : 1
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user