Changes if comparison logic for the buildPageHierarchy() method.