Is it possible to sort a HashTable?

前端 未结 11 735
不知归路
不知归路 2021-01-17 10:13

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.

11条回答
  •  一向
    一向 (楼主)
    2021-01-17 11:06

    You will need to return something other than a hash table. I won't reiterate what you claim to understand already, but you need to rethink whatever part of your design requires you to return sorted objects in a hash table.

提交回复
热议问题