Quick sort fixes.