Swift 数组升序
2017-08-23 本文已影响0人
_锋
//数组排序
letresults =passVenueNoArray.sorted{ (obj1, obj2) ->Boolin
letinteger1 :Int= obj1as!Int
letinteger2 :Int= obj2as!Int
returninteger2 > integer1
}
//数组排序
letresults =passVenueNoArray.sorted{ (obj1, obj2) ->Boolin
letinteger1 :Int= obj1as!Int
letinteger2 :Int= obj2as!Int
returninteger2 > integer1
}