Hi Sergey,
The HTK tools expect the sort order of a file to use Perl's sort order. Here is an example of a script that uses Perl's sort that you might use to start you off:
If there are only a few new words, I think I was adding them in manually.
Ken