def comparePosition(firstElement, secondElement):
 return cmp(firstElement._markpos, secondElement._markpos)

def comparePosition ( firstElement , secondElement ) : return cmp ( firstElement . _markpos , secondElement . _markpos )
compare the two elements given by their position in the document or documents they were parsed from .