Remove SortHostPorts call from state.SetAPIHostPorts

Move the logic from state into the peergrouper. I'm
not sure why we're sorting the values before adding
them to state at all, but the logic should be kept
outside at any rate.