Hook in synchronous bubble sort.