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 20, 2022
1 parent 934d5a8 commit a3d855b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lbry/extras/daemon/storage.py
Original file line number Diff line number Diff line change
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 a3d855b

Please sign in to comment.