我想尝试按NSMutableDictionary
's value which key is price
in people which is排序NSMutableArray
。
像这样...
people = [
["price" => 133, "name" => "banana"],
["price" => 333,"name" => "apple"],
["price" => 3, "name" => "orange"],
]
我想要这样:
copiedPeople = [
["price" => 3, "name" => "orange],
["price" => 133,"name" => "banana"],
["price" => 333, "name" => "apple"],
]
你有什么主意吗?