class Enum2Obj:
    def __init__(self, enum):
        for member in enum:
            setattr(self, member.name, member.value)

def sort_key(item):
    polling_station_code = item[-1]
    after_hyphen = polling_station_code.split('-')[-1]  # Get the substring after the hyphen
    return int(after_hyphen)