Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions mytoncore/mytoncore.py
Original file line number Diff line number Diff line change
Expand Up @@ -2280,6 +2280,9 @@ def GetComplaints(self, electionId=None, past=False):
complaints[chash] = item
#end for

# sort complaints by their creation time and hash
complaints = dict(sorted(complaints.items(), key=lambda item: (item[1]["createdTime"], item[0])))

# Set buffer
self.SetFunctionBuffer(bname, complaints)

Expand Down