private function sortChildren()
    {
        uasort(
            $this->children,
            function (MapperTreeItemInterface $first, MapperTreeItemInterface $second) {
                if ($first->getPriority() >= $second->getPriority()) {
                    return 1;
                }

                if ($first->getPriority() < $second->getPriority()) {
                    return -1;
                }
            }
        );
    }