public int compareTo(Version arg)
    {
        final long minNums = Math.min(nums.length,
                arg.getVersionNumbers().length);
        
        int diff = 0;
        for (int i = 0; i < minNums; i++)
        {
            if (nums[i] > arg.getVersionNumbers()[i])
            {
                diff++;
                break;
            }
            else if (nums[i] < arg.getVersionNumbers()[i])
            {
                diff--;
                break;
            }
            else
            {
                continue;
            }
        }
        
        if (diff == 0)
        {
            if (nums.length > arg.getVersionNumbers().length)
            {
                diff++;
            }
            else if (nums.length < arg.getVersionNumbers().length)
            {
                diff--;
            }
        }
        
        return diff;
    }