Fixed some dumb mistakes in sort.c "fat partitioning".  These broke cases
where there were repeats in the array.