sorting; add character "after"