LG Electronics interview question

How to sort a list in place?