I have a file like:
a1 blah
b2 blah
a3 blah
b1 blah
b3 blah
a2 blah
if I do
sort -k1,1 file.name
I'll get this:
a1
a2
a3
b1
b2
b3
However, I want to get this order:
a1
b1
a2
b2
a3
b3
how can I do that? Thanks
Edit: I edited the example, the previous one didn't present the whole problem