compareTo (other) {
    let result = compareInts(this.major, other.major)
    if (result === 0) {
      result = compareInts(this.minor, other.minor)
      if (result === 0) {
        result = compareInts(this.patch, other.patch)
      }
    }
    return result
  }
Compare this version to the given one.
@param {ServerVersion} other the version to compare with.
@return {number} value 0 if this version is the same as the given one, value less then 0 when this version
was released earlier than the given one and value greater then 0 when this version was released after
than the given one.