Rework quadratic sort timings