There is no built-in function to sort array by last three characters of string objects, since it is just too specific. But we can always break down the issue at hand.
First is how to sort an array. There are many ways to do it, for example as explained here: How to sort an NSMutableArray with custom objects in it?
Let's say we will proceed with the last shiny option which is using block.
Now, the second issue for your particular case is that you will need to get the last three characters from the string. An example of how to do it can be obtained from here: how to capture last 4 characters from NSString
Putting it all together:
NSArray *sortedArray = [array sortedArrayUsingComparator:^NSComparisonResult(id a, id b) {
NSString *first = [(NSString*)a substringFromIndex:[a length]-3];
NSString *second = [(NSString*)b substringFromIndex:[b length]-3];
return [second compare:first];
}];