def substance_to_smiles_tuples(substance):
    """Converts a `Substance` object to a tuple of smiles
    patterns sorted alphabetically.

    Parameters
    ----------
    substance: Substance
        The substance to convert.

    Returns
    -------
    tuple of str
        The tuple of smiles patterns.
    """
    return tuple(sorted([component.smiles for component in substance.components]))