The first part, how to set a sort order is covered in chapter 4, NSSortDescriptor (p 70). It includes code, and it is explained very well, but there’s no help with how it is folded into the rest of the application.
I’ve spent a few hours trying to figure this out, what I have now is this:
NSArray *recipesSorted = [[NSArray alloc] initWithArray:[self allRecipesSortedByName]];
[recipesSorted release], recipesSorted = nil;
I have that in the @-managedObjectModel@ method in @AppDelegate.m@ just before the last return. Sure enough the array is listed in order, but what do I do with that now to get it into the Table View?
The second part, how one would allow the user to re-order a list seems to be covered in Sort Descriptors, NSTableView Bindings, and You. I say “seems to”, because I haven’t managed to get it working either!