This should probably be ordered as (channel, set) to follow the fairly typical pattern of having the inputs first followed by the outputs at the end.