read text file data:
1,26586,0
1,789,1
1,5689,0
2,5895,2568
2,5899,5689
and then sort the reslut:
1,789,1
1,5689,0
1,26586,0
2,5895,2568
2,5899,5689
i use get-content file txt | sort-object -unique
the reslut is
1,26586,0
1,5689,0
1,789,1
2,5895,2568
2,5899,5689
how can i do?