How to sort an array which contains Dictionaries?

前端 未结 5 396
Happy的楠姐
Happy的楠姐 2020-12-30 20:05

I have an array which contains dictionaries in it; so how can I sort the array according to dictionary key values?

5条回答
  •  醉话见心
    2020-12-30 20:58

    why don't you use a sorted dictionary where the property of sorted elements comes already with the data structure?

    Please do check it out here

    Hope this helps.

提交回复
热议问题