Baoshan Gu·Follow1 min read·Jun 28, 2020--1ShareFor point 1, you can do:people.sort(key=operator.itemgetter(‘name’, ‘age’))