From the output it looks like you want the output in sorted order. But sorting a hashtable is not suggested. If you still want to sort the hashtable, you can go through this link:
Sorting Hashtable[
^]
The other way is instead of using the hashtable, you can use SortedDictionary.