I have a list of "snapshots" which look like this
{ description: "sdoiajosdi", "startDate": datetime.datetime(2021, 7, 16, 22, 47, 50, 609000, tzinfo=tzlocal()), Tags: [ {'sdklapsijd':'asdjiosoid'}], ownerId: "osjdaiosjd" }
These are stored in a python list. Is there a way I can sort ascending or descending based on the 'startDate' property for each item in the list? So if I have 100 snapshot objects, with differing datetime.datetime properties, can I use this as the 'sorting key?' How can I do this?