Sorts the receiver’s cells in ascending order as defined by the comparison method.
- macOS 10.0+
The comparison method.
The comparator message is sent to each object in the matrix and has as its single argument another object in the array. The comparison method is used to compare two elements at a time and should return
NSOrdered if the receiver is smaller than the argument,
NSOrdered if the receiver is larger than the argument, and
NSOrdered if they are equal.