sort comparisons based on number of changes ascending