code: public function compareVersions($versionA, $versionB)
      {
          $versionA = $this->versionParser->normalize($versionA);
          $versionB = $this->versionParser->normalize($versionB);
  
          if (Comparator::lessThan($versionA, $versionB)) {
              return -1;
          }
  
          if (Comparator::greaterThan($versionA, $versionB)) {
              return 1;
          }
  
          return 0;
      }
docs: {@inheritdoc}