Capgemini Interview Question

Sort a list by dictionary