update word order after edit
Merge pull request #62 from CS673/sortwords

update word order after edit