EPAM Systems interview question

How to sort a list in general