Sorts the immediate children of a tree using a specified comparator function.
- iOS 2.0+
- macOS 10.0+
- tvOS 9.0+
- watchOS 2.0+
- Core Foundation
The tree to sort.
The function with a comparator function type signature which is used in the sort operation to compare children of the tree. The children of the tree are sorted from least to greatest according to this function.
A pointer-sized program-defined value that is passed to the comparator function, but is otherwise unused by this function.
Note that the comparator only operates one level deep and does not operate on descendants further removed than the immediate children of a tree node.