def sortAndReturnQuantiles(values):
    """Returns minimum, 0.25-quantile, median, 0.75-quantile, maximum"""
    
    values.sort()
    N = len(values)
    return (values[0], values[N/4], values[N/2], values[(3*N)/4], values[N-1])