Skip to content

Commit

Permalink
sort listinvoices and listsendpays by order of creation.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf authored and cdecker committed May 29, 2020
1 parent ce9e559 commit 96452ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion wallet/invoices.c
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,8 @@ bool invoices_iterate(struct invoices *invoices,
", bolt11"
", description"
", features"
" FROM invoices;"));
" FROM invoices"
" ORDER BY id;"));
db_query_prepared(stmt);
it->p = stmt;
} else
Expand Down
3 changes: 2 additions & 1 deletion wallet/wallet.c
Original file line number Diff line number Diff line change
Expand Up @@ -2797,7 +2797,8 @@ wallet_payment_list(const tal_t *ctx,
", failonionreply"
", total_msat"
", partid"
" FROM payments;"));
" FROM payments"
" ORDER BY id;"));
}
db_query_prepared(stmt);

Expand Down

0 comments on commit 96452ea

Please sign in to comment.