>>320 でキチンとソートされているけど、
zbr
uuuuu
sa
ki
niino
aaa

aaa
ki
niino
sa
uuuuu
zbr

それとも前のプログラムのどこが間違っているかをしりたいってこと?
ポインタのポインタと、標準の文字列関数 str---() を勉強しましょう。