Clean up.
Don't need to sort - we process the objects in sorted order.  Remove
duplicates as we insert.