From 96452eafb72cade7de24c1bb72a6a22e2620e594 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Thu, 28 May 2020 23:27:55 -0300 Subject: [PATCH] sort listinvoices and listsendpays by order of creation. --- wallet/invoices.c | 3 ++- wallet/wallet.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/wallet/invoices.c b/wallet/invoices.c index cf8832f54..253ac758b 100644 --- a/wallet/invoices.c +++ b/wallet/invoices.c @@ -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 diff --git a/wallet/wallet.c b/wallet/wallet.c index 1cc48ad70..620c9ec32 100644 --- a/wallet/wallet.c +++ b/wallet/wallet.c @@ -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);