标签:
var cmptr:NSComparator = {(obj1:AnyObject!, obj2:AnyObject!) -> NSComparisonResult in if((obj1["sort"] as! NSString).integerValue > (obj2["sort"] as! NSString).integerValue) { return NSComparisonResult.OrderedDescending } if((obj1["sort"] as! NSString).integerValue < (obj2["sort"] as! NSString).integerValue) { return NSComparisonResult.OrderedAscending } return NSComparisonResult.OrderedSame }
标签:
原文地址:http://www.cnblogs.com/shidaying/p/4699121.html