add ip and sort