def logFileCmpFunc(x,y):
    """
    Comparison function for sorting the log file names.
    """
    xNum = int(x.split('_')[1])
    yNum = int(y.split('_')[1])
    if xNum > yNum:
        value = 1
    elif yNum > xNum:
        value = -1
    else:
        value = 0
    return value