compareTo

Compares a version with another version and returns the comparison result.