def METHOD_NAME(path_o: pd.DataFrame, path_o_index: pd.DataFrame, destination: int):
    """for a given path file and path index file, and a given destination, return the path links in o-d order"""
    if destination == 0:
        lower_incl = 0
    else:
        lower_incl = path_o_index.loc[path_o_index.index == destination - 1].values[0][0]
    upper_non_incl = path_o_index.loc[path_o_index.index == destination].values[0][0]
    links_on_path = path_o.loc[(path_o.index >= lower_incl) & (path_o.index < upper_non_incl)].values.flatten()
    links_on_path = np.flip(links_on_path)
    return links_on_path