Sort and dedupe names