def getPositionMapper(direction):
    """
    Based on the depth direction the indices of the world position are ordered
    to match the users input.

    :param str direction: Acceptable arguments are 'x', 'y' and 'z'
    :return: List of indices
    :rtype: list
    """
    # variables
    order = []

    # build order
    if direction == "x":
        order = [2, 1, 0]
    elif direction == "y":
        order = [0, 2, 1]
    elif direction == "z":
        order = [0, 1, 2]

    # build mapper
    return order