import operator


def sorter(items, index=1):
    """Sorts a list of tuples and chooses unique objects.

    :param items: tuples ``(relevance, item_id, *args)``.
        Sorting is made using relevance values and unique items
        are selected using element at ``index``'s position.
    :param index: index of the element in tuple to be returned
    :return: unique sorted elements
    """
    res = sorted(items, key=operator.itemgetter(0), reverse=True)
    set_res = set()
    list_res = []
    for item in res:
        if item[1] not in set_res:
            set_res.add(item[1])
            list_res.append(item[index])
    return list_res