Closes #2371 by ordering ports output by private port