Change the compare function to only consider applied patch.