def version_comparator(a, b):
    if (a == b):
        return 0
    if (a is None):
        return 1
    if (b is None):
        return (- 1)
    (a, b) = (LooseVersion(str(a)), LooseVersion(str(b)))
    if (a < b):
        return 1
    if (a > b):
        return (- 1)
    return 0
def version_comparator(a, b):
    if (a == b):
        return 0
    if (a is None):
        return 1
    if (b is None):
        return (- 1)
    (a, b) = (LooseVersion(str(a)), LooseVersion(str(b)))
    if (a < b):
        return 1
    if (a > b):
        return (- 1)
    return 0