I have a list and I am appending a dictionary to it as I loop through my data...and I would like to sort by one of the dictionary keys.
ex:
data = \
I actually had this almost exact question yesterday and solved it using search. The best answer applied to your question is this:
from operator import itemgetter list.sort(key=itemgetter('date'), reverse=True)