var
userList = [
UserInfo
]()
userList.append(
(name:
"张三"
,phone:
"4234"
))
"李四"
"1212"
))
"航歌"
"3525"
))
|
方法1
方法2
userList.sortInPlace({$0.name > $1.name}) |