Sorting cantidates.