Moody's interview question

How do I sort a list?