You haven't taken account of the effect of removing an item and reordering the list that I described in the earlier post.

You are now comparing only element 0, which is a step backwards from your original code.

You are no longer checking the unique field, which means you are going to delete entries where the unique key foes not match.