NSArray *arr = @[@"fjhsf",@"wert",@"fdg",@"asd",@"fs gds",@"bfd sd",@"ref",@"hjk"];
NSStringCompareOptions comparisonOptions = NSCaseInsensitiveSearch|NSNumericSearch|
NSWidthInsensitiveSearch|NSForcedOrderingSearch;
NSComparator sort = ^(NSString *obj1,NSString *obj2){
NSRange range = NSMakeRange(0,obj1.length);
return [obj1 compare:obj2 options:comparisonOptions range:range];
};
NSArray *resultArray = marr sortedArrayUsingComparator:sort];
NSLog(@"字符串数组排序结果%@",resultArray);