From 017ef5b41a6b0d852fc08efaeca5f723cc86926d Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Fri, 26 Jun 2020 23:35:11 -0400 Subject: [PATCH] order by file --- lbry/blockchain/database.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lbry/blockchain/database.py b/lbry/blockchain/database.py index f18c6ef13..f73be6b3e 100644 --- a/lbry/blockchain/database.py +++ b/lbry/blockchain/database.py @@ -107,6 +107,7 @@ class BlockchainDB: MAX(height) as best_height FROM block_info WHERE status&1 AND status&4 + ORDER BY file """ args = () if file_number is not None and start_height is not None: