Approach hintTry it first, then revealHide
Map each email to the first account index that contains it and union any later account with that index. Then group emails by root, sort each group, and prepend the owner's name.
Map each email to the first account index that contains it and union any later account with that index. Then group emails by root, sort each group, and prepend the owner's name.