Student.h:
Student.m:
main:
结果:
2013-08-02 15:32:46.883 NSMutableArray[1179:303] 排序前:(
1,
4,
3,
2
)
2013-08-02 15:32:46.885 NSMutableArray[1179:303] 排序后:(
2,
4
本文转自蓬莱仙羽51CTO博客,原文链接:http://blog.51cto.com/dingxiaowei/1366479,如需转载请自行联系原作者
Student.h:
Student.m:
main:
结果:
2013-08-02 15:32:46.883 NSMutableArray[1179:303] 排序前:(
1,
4,
3,
2
)
2013-08-02 15:32:46.885 NSMutableArray[1179:303] 排序后:(
2,
4
本文转自蓬莱仙羽51CTO博客,原文链接:http://blog.51cto.com/dingxiaowei/1366479,如需转载请自行联系原作者