public function compare(DocumentationEntity $other)
    {
        $v1 = $this->getVersion();
        $v2 = $other->getVersion();

        // Normalise versions prior to comparison
        $dots = substr_count($v1, '.') - substr_count($v2, '.');
        while ($dots > 0) {
            $dots--;
            $v2 .= '.99999';
        }
        while ($dots < 0) {
            $dots++;
            $v1 .= '.99999';
        }
        return version_compare($v1, $v2);
    }