def METHOD_NAME(pred: List[float], docs: List[str]):
    zipped_lists = zip(pred, docs)
    sorted_pairs = sorted(zipped_lists)
    tuples = zip(*sorted_pairs)
    pred, docs = [list(tuple) for tuple in tuples]
    pred.reverse()
    docs.reverse()
    return pred, docs