I am developing an application where I need to display UITableView, like this one:

I use Core Datawith one object named Node , this object has 3 attributesand 2 relationships. One relationshipis equal parent, this ratio indicates Nodeitself from one to one. Another attitude childs(sorry, I know these are children, but I like words ending in s for one to many relationships). childsindicates a Nodeone-to-many relationship and an inverse relationship to the parent.

The problem is that I don’t know how to sort the elements in fetchedResultsControlerto display them in TableView, like this image.
thank