Group by sequence type so that individual transactions can have different sequence types.