class PatchInstallerUtil {

  static int comparePatcherPaths(@NotNull String path1, @NotNull String path2) {
    int v1 = -1;
    int v2 = -1;
    try {
      v1 = Integer.parseInt(path1.substring(path1.lastIndexOf('v') + 1));
    }
    catch (NumberFormatException ignored) {
    }
    try {
      v2 = Integer.parseInt(path2.substring(path2.lastIndexOf('v') + 1));
    }
    catch (NumberFormatException ignored) {
    }
    return Integer.compare(v1, v2);
  }

}