def leaveOlder(x, y):
    """
    In reduceByKey, leave idea with older DetectTime (x[1]/y[1])
    :param x: first element in reduce process
    :param y: second element in reduce process
    """
    if x[1] <= y[1]:
        return x
    else:
        return y