Thoughtworks interview question

Array with sort without using an inbuilt function.