Much to my surprise, I seem to have found a bug in "sort."

Option "-b" turns off the inclusion of white space in a sort.  However,
this also seems to be the default, and I can find no way to turn it on.

What I'm doing is sorting amateur radio call signs.  They have the
format:
   (prefix) (number) (suffix)
The prefix can be one or two letters, and the field normally sorted by
is the suffix.

The data I'm trying to sort is organized as such:

 N9TLS
KG9LX
 N4FOZ
KB9PRR

(TLS, LX, FOZ, and PRR are to be sorted in the example.)

I need to sort by the fourth character, including white space, but
"sort" (with only "+4" or "-k 4" option) ignores the spaces or, if
substituted, punctuation marks.  
-- 
     _                   _ _                 
 ___| |_ _____   _____  | (_)_ __  _ __  ___ 
/ __| __/ _ \ \ / / _ \ | | | '_ \| '_ \/ __|
\__ \ ||  __/\ V /  __/ | | | |_) | |_) \__ \
|___/\__\___| \_/ \___| |_|_| .__/| .__/|___/
                            |_|   |_|

Reply via email to