objective-ccore-datansfetchedresultscontrollernssortdescriptor

NSSortDescriptor which generates ORDER BY `name` = 'bob' DESC?


In raw SQL it would be simple to sort with all bobs coming first.

How can I do this using a NSFetchedResultsController and NSSortDescriptor?


Solution

  • The solution I found to this is kind of problem is to just add an extra field to help with the FRC. ie isBob which gets updated whenever the name is set.