How can I sort a list of objects in python mongo.
I am creating a view that shows all the members; I don't have timestamp nothing like that in my models.
How would I sort this based on database list; like descend results or ascend the results?
in my case I have appointments; I want to show descend the appointments(So like the latest appointments in the db is sorted first then older appointments later on the arr or mongo object).
get_appointments = appointment.objects.all()
So I want to be able to descend appointment.