I have a csv file in the following format:
COLUMN1,COLUMN2,COLUMN3
2,1,0
1,0,0
3,2,0
1,4,1
4,3,0
1,1,4
5,6,0
6,5,0
I want to sort it by 1st and 3rd columns using a bat file. The result I want to get is:
COLUMN1,COLUMN2,COLUMN3
1,0,0
1,4,1
1,1,4
2,1,0
3,2,0
4,3,0
5,6,0
6,5,0
In unix this can be done using sort -n -k1,1 -k3,3 xx.csv > sorted.csv. I tried to do sort /+1 /+3 xx.csv > sorted.csv in windows, but it didn't work... Thanks for your help