Only run compareSources if there are enough entries in the vector.