I need to arrange the below, in the shown order. First based on 1st column, secondarily based on 3rd column.
148672074 ABC 23.77
148672073 ABC 13.77
148672074 ABC 53.77
148672071 ABC 23.77
148672074 ABC 93.77
148672074 ABC 193.77
I need it like,
148672071 ABC 23.77
148672073 ABC 13.77
148672074 ABC 193.77
148672074 ABC 93.77
148672074 ABC 53.77
148672074 ABC 23.77
I used the below command.
sort -t "\t" -k1,1n -k3,3rn a.txt >b.txt
However, I'm getting the output as
148672071 ABC 23.77
148672073 ABC 13.77
148672074 ABC 193.77
148672074 ABC 23.77
148672074 ABC 53.77
148672074 ABC 93.77
Somebody Please tell me where I'm going wrong? And kindly give me the right command.
PS: The file I'm using is a TSV format file, exported from an excel sheet.