r"""
    Args:
        list_ (list):
        priority (list): desired order of items

    Returns:
        list: reordered_index_list

    Example:
        >>> # ENABLE_DOCTEST
        >>> from utool.util_list import *  # NOQA
        >>> import utool as ut
        >>> list_ = [2, 4, 6, 8, 10]
        >>> priority = [8, 2, 6, 9]
        >>> sortx = priority_argsort(list_, priority)
        >>> reordered_list = priority_sort(list_, priority)
        >>> assert ut.take(list_, sortx) == reordered_list
        >>> result = str(sortx)
        >>> print(result)
        [3, 0, 2, 1, 4]

def priority_argsort(list_, priority):
    r"""
    Args:
        list_ (list):
        priority (list): desired order of items

    Returns:
        list: reordered_index_list

    Example:
        >>> # ENABLE_DOCTEST
        >>> from utool.util_list import *  # NOQA
        >>> import utool as ut
        >>> list_ = [2, 4, 6, 8, 10]
        >>> priority = [8, 2, 6, 9]
        >>> sortx = priority_argsort(list_, priority)
        >>> reordered_list = priority_sort(list_, priority)
        >>> assert ut.take(list_, sortx) == reordered_list
        >>> result = str(sortx)
        >>> print(result)
        [3, 0, 2, 1, 4]
    """
    reordered_list = priority_sort(list_, priority)
    # FIXME: inefficient
    sortx = [list_.index(item) for item in reordered_list]
    return sortx