Skip to content

Commit

Permalink
break tie by length
Browse files Browse the repository at this point in the history
  • Loading branch information
shyba committed Feb 21, 2022
1 parent d12c78d commit 43ac333
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lbry/extras/daemon/storage.py
Expand Up @@ -462,7 +462,7 @@ async def get_stored_blobs(self, is_mine: bool, is_network_blob=False):
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
Expand Down

0 comments on commit 43ac333

Please sign in to comment.