If I want to sort an array of elements alphabetically without NSDiacriticInsensitiveSearch option, I need to use NSSortDescriptor with comparator
NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc] initWithKey:@"SortTitle" ascending:YES comparator: ^(id obj1, id obj2) { NSInteger options = NSCaseInsensitiveSearch | NSNumericSearch
However, such an NSSortDescriptor with a comparator is not allowed to be used in NSFetchRequest . Therefore, should you sort the results after obtaining data from the master data? Is it computationally expensive in terms of performance?
thanks
sorting ios objective-c
aneuryzm
source share