📜  按字母顺序排序数组 swift 4 - Swift 代码示例

📅  最后修改于: 2022-03-11 15:01:02.189000             🧑  作者: Mango

代码示例1
var sortedArray = names.sorted { $0.localizedCaseInsensitiveCompare($1) == NSComparisonResult.OrderedAscending }