Sorts by ip and eliminates dups