I have an iPhone application that needs to sort a couple of NSMutableArrays, this arrays contain around 3000 elements.
The idea is to sort them once when the application starts, then every iteration I need to insert 9 elements to each of those arrays. Is there an efficient way with NSMutableArrays, to insert those 9 elements in a sorted way?
I don't know if sortUsingSelector: is "smart" enough to take advantage of the array being mostly sorted and only 9 elements being "unsorted".
Thanks!