Skip to content

Commit

Permalink
sort by file_counter in collections
Browse files Browse the repository at this point in the history
  • Loading branch information
heartsucker committed Mar 14, 2019
1 parent 37fe0aa commit da8a2c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion securedrop_client/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def collection(self):
collection.extend(self.messages)
collection.extend(self.files)
collection.extend(self.replies)
collection.sort(key=lambda x: int(x.filename.split('-')[0]))
collection.sort(key=lambda x: x.file_counter)
return collection


Expand Down

0 comments on commit da8a2c7

Please sign in to comment.