Given the following NSSortDescriptor for rows with master data:
[NSSortDescriptor sortDescriptorWithKey:@"series" ascending:true selector:@selector(caseInsensitiveCompare:)]
Results are sorted alphabetically in ascending order. However, in cases where series is nil , lines with nil values ββare placed at the top, after which non-nil values ββare sorted, EG:
[nil, nil, nil, A, B, C, D...]
Is there a way to control this behavior? Master data does not allow you to configure the selector. Here's a similar question for mine (without resorting to limiting the master data):
NSSortDescriptor and nil Values
ios objective-c core-data
mattsven
source share