I need to iterate through an NSArrayController in a coredata model by a specific order.
Lets say that my model has these columns:
animal (string)
name (string)
age (int)
and I would like to iterate trough the controller like this:
for (animal *a in myNsArrayController.arrangedObjects)
{
// Rest of code
}
but I would need to do it ordered by animal age... how can i do that?
A search did not bring me to any usable results..