about Merging custom sort orders in fetches #516

duoleimi opened this Issue Jul 11, 2013 · 1 comment


None yet

2 participants


for (__strong NSString* sortKey in sortKeys)
NSArray * sortComponents = [sortKey componentsSeparatedByString:@":"];
if (sortComponents.count > 1)
NSNumber * customAscending = sortComponents.lastObject;
ascending = customAscending.boolValue; //ascending may change other param's ascending
sortKey = sortComponents[0];

    NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc] initWithKey:sortKey ascending:ascending];
    [sortDescriptors addObject:sortDescriptor];

ascending may change other property's ascending


Given the age of this issue, and the volume of issues we have to work through, I've decided to close this alongside a number of other older issues.

If you can still replicate the issue under the latest in-development version of MagicalRecord (3.0 at the time of writing), please feel free to re-open and one of @magicalpanda/team-magicalrecord will take another look. Thanks!

@tonyarnold tonyarnold closed this Apr 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment