>>> l = [{'name': 'C', 'price': 5}, {'name': 'A', 'price': 2}, {'name': 'B', 'price': 1}]
>>> newlist = sorted(l, key=lambda k: k['price'])
>>> newlist
[{'name': 'B', 'price': 1}, {'name': 'A', 'price': 2}, {'name': 'C', 'price': 5}]
>>> from operator import itemgetter
>>> newlist = sorted(l, key=itemgetter('price'))
>>> newlist
[{'name': 'B', 'price': 1}, {'name': 'A', 'price': 2}, {'name': 'C', 'price': 5}]