Phison interview question

How to do sorting algorithm