This method compares two versions of the app, v1 and v2, returning the result of this comparison as an Int value.