Question d’entretien chez Thoughtworks

Array with sort without using an inbuilt function.