How can I sort to columns in the following way
My two columns before sorting
C Ciks
C Bsdjnf
C ACfff
A Bhdh
A Apdp
A Cyay
B Ayay
B Cnan
B Btag
After being sorted
A Apdp
A Bhdh
A Cyay
B Ayay
B Btag
B Cnan
C ACfff
C Bsdjnf
C Ciks
I have been using the common command found for example the one found here
It will sort by priority, upper line, upper priority, then next line... will not modify prior sorted line(s).