def get_sorted_y(y, y_pred, check=True):
    return y[get_sorted_y_positions(y, y_pred, check=check)]
Returns a copy of `y` sorted by position in `y_pred`.
dataset/ETHPy150Open jma127/pyltr/pyltr/util/sort.py/get_sorted_y