make sure list is sorted by ip