Fortunately, you have the advantage that column 1 is already sorted, so you just need to test if consecutive elements are duplicate.
The attached example (LabVIEW 7.0) shows an easy way to do this. Let me know if the code is not clear to you.
If the first row is not sorted, it would get a bit more complicated.