Fixed timing code for sort.