In-place sorting.