Atlassian interview question

Sort a list with a dictionary