Find maximum column widths in the same loop as building sorted subtotals