Fixed a utility method to do network horder instead of host order