Fix: Usernotes aren't sorted by timestamp.
This commit is contained in:
parent
dba6d37456
commit
c14fce184c
1 changed files with 1 additions and 1 deletions
|
@ -447,7 +447,7 @@ class User(CreatedBase):
|
|||
data = {'username': self.username,
|
||||
'url': self.url,
|
||||
'id': self.id,
|
||||
'notes': [x.json() for x in self.notes]
|
||||
'notes': [x.json() for x in sorted(self.notes, key=lambda x: x.created_utc)]
|
||||
}
|
||||
|
||||
return data
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue