Python - Sort a list of dictionaries by values of key

from operator import itemgetter
newlist = sorted(list_to_be_sorted, key=itemgetter('name'))

add reverse=True to sort descending
newlist = sorted(l, key=itemgetter('name'), reverse=True)