Apart from how powerful and flexible NSArray in Objective-C is, there are times that you need to sort many arrays throughout the projects.
The standard way of sorting arrays in Objective-C is to use one of:
- sortedArrayHint
- sortedArrayUsingFunction:context:
- sortedArrayUsingFunction:context:hint:
- sortedArrayUsingDescriptors:
- sortedArrayUsingSelector:
(See the official documentation)
But what if all I need is just a simple sort, available in different classes and across many projects? [click to continue…]
{ 0 comments }


