Hook in synchronous version of quick sort.