Apple does not provide any information about the complexity of its sorting functions,
You should proceed from the fact that the sorting algorithm will be selected by the structure to provide better performance, in any case, you can take a look at CHDataStructures if you need additional data structures to implement the sorting algorithm as you see fit, possibly a bunch or a binary tree.
source share