Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

number string sort

$
0
0

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?


Viewing all articles
Browse latest Browse all 6937

Trending Articles