I need help solving the the below expression which is from the book Modern Quantum Mechanics by J. J. Sakurai and Jim Napolitano.
$$A=\sum_{a''}\sum_{a'}|a''\rangle a'\delta_{a'a''}\langle a'| =~?$$
I think that kronecker delta function will go with the ket $|a''\rangle$
$A=\sum_{a''}\sum_{a'}\delta_{a'a''}|a''\rangle a'\langle a'|$
and will change the term $\delta_{a'a''}|a''\rangle$ to $|a'\rangle$ and the expression will become
$$A=\sum_{a'}|a'\rangle a'\langle a'|,$$
but I'm not sure. Please help.