def METHOD_NAME(self, col_key, reverse=False):
    if reverse:
        direction = 'desc'
    else:
        direction = 'asc'
    return flask.url_for(
        ut.get_funcname(index), sort=col_key, direction=direction
    )