Moody's Interview Question

How do I sort a list?