Orders the view's immediate subviews using the specified comparator function.
- macOS 10.0+
A pointer to the comparator function. This function must take as arguments two subviews to be ordered and contextual data (supplied in
contextwhich may be arbitrary data used to help in the comparison. The comparator function should return
NSOrderedif the first subview should be ordered lower,
NSOrderedif the second subview should be ordered lower, and
NSOrderedif their ordering isn’t important.
Arbitrary data that might help the comparator function
comparein its decisions.