def highestMax(requestContext, seriesList, n=1):
    result_list = sorted(seriesList, key=lambda s: max(s))[-n:]
    return sorted(result_list, key=lambda s: max(s), reverse=True)
Takes one metric or a wildcard seriesList followed by an integer N.
dataset/ETHPy150Open brutasse/graphite-api/graphite_api/functions.py/highestMax