Before improvements to sort.