Minitab uses the confidence interval results for the difference between two level means to obtain the grouping information. The grouping information is in a matrix. Suppose a term has k levels, then the maximum dimension of the matrix is k x k. If all levels are in one group, then the dimension is k x 1, with letter "A" for all factor levels. If all levels are in different groups, the dimension is k x k with letters on the diagonal only.
Minitab uses the confidence interval results for the difference between each level mean and the control level to obtain the grouping information. The grouping information is in a matrix with one column.
Minitab assigns the letter "A" to the control level.
If an interval contains 0, then the level mean is in the same group as the control level. Minitab assigns the letter "A" to the level mean.
If an interval does not contain zero, then no letter is assigned.