def METHOD_NAME(self, data: Sequence, reverse: bool) -> List[Tuple[str, int]]:
    data = sorted(data, reverse=reverse)
    data = [fmt(x) for x in data]
    return [(x, y) for (y, x) in enumerate(data)]