Apple interview question

How would you sort an array in-place?