Fix: Usernotes aren't sorted by timestamp.

This commit is contained in:
Ben Rog-Wilhelm 2023-08-26 04:26:08 -05:00
parent dba6d37456
commit c14fce184c

View file

@ -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