[feature/revisions] Change in comparison ID determination logic

PHPBB3-10755