Question d’entretien chez Avidbots

Given a unsorted array, how do you sort it and why?