Problem:
self.collection.find().sort({'date':-1})
isn’t sorting the database. Or it is sorting it but not changing the actual database to be sorted. Here’s a picture of it unsorted:
Note: This used to work before (2 days ago), not sure why it doesn’t work anymore.