def mapping_list_dict(mol):
    """
    Computes a list of all map numbers and an atom-mapping indices dictionary.

    Parameters
    ----------
    mol: rdkit.Chem.Mol
        RDKit molecule.

    Returns
    -------
    map_numbers: List[int]
        Sorted list of atom map numbers
    mapping: dict
        Dictionary of mapping
    """

    map_numbers = []
    mapping = {}
    for atom in mol.GetAtoms():
        if atom.HasProp("molAtomMapNumber"):
            map_numbers.append(int(atom.GetProp("molAtomMapNumber")))
            mapping[int(atom.GetProp("molAtomMapNumber"))] = atom.GetIdx()
    map_numbers.sort()

    return map_numbers, mapping