Sort ip addresses in the result