From 43ac3336d7d7e17dc632f240128d8ff1762f29ae Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Sun, 20 Feb 2022 20:18:26 -0300 Subject: [PATCH] break tie by length --- lbry/extras/daemon/storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lbry/extras/daemon/storage.py b/lbry/extras/daemon/storage.py index 64805c04a..e0eaa23ec 100644 --- a/lbry/extras/daemon/storage.py +++ b/lbry/extras/daemon/storage.py @@ -462,7 +462,7 @@ class SQLiteStorage(SQLiteMixin): content_blobs = await self.db.execute_fetchall( "select blob.blob_hash, blob.blob_length, blob.added_on " "from blob join stream_blob using (blob_hash) cross join stream using (stream_hash)" - "cross join file using (stream_hash) where blob.is_mine=? order by blob.added_on asc", + "cross join file using (stream_hash) where blob.is_mine=? order by blob.added_on asc, blob.blob_length asc", (is_mine,) ) return content_blobs + sd_blobs