I have a property that returns a HashTable. I would like to sort it without refactoring my property. Please note: I do not want to return another type.
Another option is to construct the hash table as you're already doing, and then simply construct a sorted set from the keys. You can iterate through that sorted key set, fetching the corresponding value from the hash table as needed.