Sort list of metrics and metrics data

This makes the metrics a lot easier to scan, because it groups similar
metrics (like all the HTTP metrics) as well as the percentiles, etc.