NSArray*arr6=@[@12,@9,@34,@56,@11];
NSLog(@"第二题没倒序之前输出——————————————————————————————————————————————————");
for (id str6 in arr6)
{
NSLog(@"%@",str6);
}
NSArray*newarr6=[NSArray arrayWithArray:arr6];
for (int i=0; i<arr6.count; i++) {
[arr6 ]
}
NSLog(@"倒序之后输出为_________________________________________________________");
NSComparator sort1=^(id obj1,id obj2){
NSComparisonResult result =[obj2 compare:obj1];
return result;
};
NSArray*sort2=[arr6 sortedArrayUsingComparator:sort1];
for (id str100 in sort2)
{
NSLog(@"%@",sort2);
}