add sort to string and word