Deloitte interview question

Make an algorithm to sort dictionaries in python