function getTreePosition()
{
# Tree position is number 100^level + sibling offset
$iLevel = substr_count($this->getNodePath(), "/") - 2;
# -1 to align on 0, and -1 to compensate for /document
if ($iLevel === 0) {
return $this->getSiblingPosition();
} else {
return pow(10, $iLevel) + $this->getSiblingPosition();
}
}