Python Sort Array Custom Comparator

l = [{'prop': 2}, {'prop': 3}, {'prop': 1}]

l.sort(key=lambda x: x['prop'])
Tekno