Refactoring IDV Version comparison and ordering.