implement result address sorting in the resolver (getaddrinfo, etc.)