def dict_to_string(some_dict):
    """
    Takes the {"A":some_value, "B":some_other_value}

    to

    "Asome_valueBsome_other_value".

    This can then be used as a key for a CPT table.
    """
    result = ""
    sorted_keys = sorted(some_dict, key=lambda key: key)
    new_dict = {key: some_dict[key] for key in sorted_keys}

    for key in new_dict:
        result += str(key) + str(new_dict[key])

    return result