code: public List<InetAddress> getSortedListByProximity(InetAddress address, Collection<InetAddress> unsortedAddress)
      {
          List<InetAddress> preferred = new ArrayList<InetAddress>(unsortedAddress);
          sortByProximity(address, preferred);
          return preferred;
      }
docs: Sorts the <tt>Collection</tt> of node addresses by proximity to the given address
  @param address the address to sort by proximity to
  @param unsortedAddress the nodes to sort
  @return a new sorted <tt>List</tt>