views:

33

answers:

0

Possible Duplicate:
How can I remove duplicates in an array but keep the same order?

How I can delete duplicate row without sorting it?

data.txt    newData.txt
1           1
5           5
3           3
3           8
8
8

I have tried to use the function UNIQUE but it sorted the data in ascending order. I don't want it to be sorted. I just want to delete the repeating row and remain the original order of the data newData.txt

related questions