change ipsort to premerge the ip