That logic doesn't make sense to me. Version 1.7.1 is certainly newer than 1.6.325, but your code will return false. I think you need to return true early if int_versions[i] is bigger.