I figured it out, and it's a funny little issue! It is doing the sort correctly, but is evaluating the length of the words in an alphabetic way. The 10 letter words are alphabetically shorter than the 9 letter words, because "10" comes before "9". You can solve it like this: sort fld 2 numeric by the number of chars of each