isComponentBefore

Check if the component, identified by componentId, is before the component identified by the anchorId.