Virage Logic interview question

how to sort numbers in a recursive function