willow-utils/src/main/java/com/btr/proxy/selector/pac/PacScriptMethods.java
@Override
  public String sortIpAddressList(String ipAddressList) {
    if (ipAddressList == null || ipAddressList.trim().length() == 0) {
      return "";
    }
    String[] ipAddressToken = ipAddressList.split(";");
    List<InetAddress> parsedAddresses = new ArrayList<InetAddress>();
    for (String ip : ipAddressToken) {
      try {
        parsedAddresses.add(InetAddress.getByName(ip));
      } catch (UnknownHostException e) {
        log.log(Level.FINE, "Ip address not resolveable {0}.", ip);
      }
    }
    Collections.sort(parsedAddresses, null);
    return ipAddressList;
  }
@Override
  public String sortIpAddressList(String ipAddressList) {
    if (ipAddressList == null || ipAddressList.trim().length() == 0) {
      return "";
    }
    String[] ipAddressToken = ipAddressList.split(";");
    List<InetAddress> parsedAddresses = new ArrayList<InetAddress>();
    for (String ip : ipAddressToken) {
      try {
        parsedAddresses.add(InetAddress.getByName(ip));
      } catch (UnknownHostException e) {
        log.log(Level.FINE, "Ip address not resolveable {0}.", ip);
      }
    }
    Collections.sort(parsedAddresses, null);
    return ipAddressList;
  }
***********************************************************************
sortIpAddressList

@see com.btr.proxy.selector.pac.ScriptMethods#sortIpAddressList(java.lang.String)
**********************************************************************