Merge branch 'sort-transactions' of billy/budget into master

This commit is contained in:
Billy Brawner 2018-09-02 21:54:07 -05:00 committed by Gitea
commit 12f7edc581

View file

@ -13,9 +13,9 @@ export class TransactionService {
getTransactions(count?: number): Observable<Transaction[]> {
if (count) {
return from(this.db.transactions.toCollection().limit(count).toArray())
return from(this.db.transactions.orderBy('date').reverse().limit(count).toArray())
} else {
return from(this.db.transactions.toCollection().toArray())
return from(this.db.transactions.orderBy('date').reverse().toArray())
}
}