Layout fix for quicksort