Hi Matthew,
The ordering of the metrics is very much hardcoded into the WebServer PowerPack agent, apart from the option to change the display name.
What is the purpose of the grouping, could you set up a metric grouping of the values you need and display that on a dashboard ?
The metric grouping could also be used as a source of data for reporting.
You can use virtual agents (agentclusters.xml) configured on the Enteprise Manager to take metrics from multiple agents and aggregate the values and generate new metrics from that, but that only really works where you have common values that you want to aggregate, I'm not sure that would be a good option for port numbers, for example..
Many thanks,
David