Another refactoring of IDV Version comparison and ordering