Instead of asking how to sort hash tables (which is an idiotic thing to do), you should state why exactly you want the hash tables sorted. What you want to do may not even require for you to sort the hash table in the first place.

Btw, when making a script, or in general when working on whatever project in life, an important part of it is thinking/planning ahead. If you only found out now that you need your hash table sorted, then you didn't really think it through when you first took the decision to resort to hash tables. If the order of adding is important, I'd have gone with a hidden window probably.

Note that there are ways to sort the data that is in the hash table when this data is exported to a file or window, with the /filter command, but that's still not sorting the hash table itsself. It's just taking a copy of the data which the hash table holds, and then sorting this copy.

Your unjustified use of the mad smiley is quite aggravating.