I've studied the sort docs and tried many combinations without success. sort
I'm sure I could muddle my way through with a python script, but I was hoping to get a one-liner using a "sort" or similar utility.
This exercise is really just a puzzle I came up with while reading the Vim docs on filters. I was trying to sort a range of lines, then I asked myself if I could just sort the current line.
I'm not a student in any classes, just a student of life.
I responded to your question but I included a link, so I guess it's being held up for administrator review. Anyway, I've tried "sort" and some awk, but still no joy.
Yes, I asked earlier what you had tried so far. That is quite helpful to the people that reply to you because they can get a feel for where you are going wrong or where you can use improvement and also see what you are doing correct and see what shell script you are using. Next time post any code you had written to try and solve the problem.