group extensions by letter