【发布时间】:2015-07-07 14:34:39
【问题描述】:
我有这个数组:
[[Lots: 2783, Development: Suntec City], [Lots: 1583, Development: Marina Square], [Lots: 594, Development: The Esplanade], [Lots: 1270, Development: Millenia Singapore], [Lots: 283, Development: Singapore Flyer], [Lots: 185, Development: Orchard Point], [Lots: 152, Development: The Heeren], [Lots: 595, Development: Plaza Singapura], [Lots: 77, Development: The Cathay], [Lots: 302, Development: Mandarin Hotel], [Lots: 1092, Development: Ngee Ann City], [Lots: 331, Development: Wisma Atria], [Lots: 1251, Development: VivoCity P3], [Lots: 933, Development: Sentosa], [Lots: 369, Development: Tang Plaza], [Lots: 932, Development: Harbourfront Centre], [Lots: 196, Development: Far East Plaza], [Lots: 324, Development: Centrepoint], [Lots: 218, Development: Concorde Hotel], [Lots: 434, Development: ION Orchard], [Lots: 194, Development: 313@Somerset], [Lots: 1971, Development: Resorts World Sentosa], [Lots: 726, Development: VivoCity P2], [Lots: 268, Development: Orchard Central], [Lots: 386, Development: Park Mall], [Lots: 812, Development: Marina Bay Sands]]
我想按字母顺序按“发展”值对它们进行排序。我试过使用 sorted by 似乎它只适用于字典
【问题讨论】:
-
请显示您尝试过的实际代码。给我们一些开始。
标签: ios arrays swift dictionary