String entityName=(String)valueForBinding("sourceEntityName");
EOEditingContext ec=((EOEnterpriseObject)valueForBinding("sourceObject")).editingContext();
EOEntity sourceEntity=EOUtilities.entityNamed(ec,entityName);
EORelationship r1=sourceEntity.relationshipNamed((String)valueForBinding("relationshipKey"));
EOEntity childEntity=r1.destinationEntity();
EORelationship r2= childEntity.relationshipNamed((String)valueForBinding("restrictingRelationshipKey"));
EOEntity parentEntity=r2.destinationEntity();
NSArray unsortedList=EOUtilities.objectsForEntityNamed(ec,parentEntity.name());
EOSortOrdering sortOrdering=new EOSortOrdering((String)valueForBinding("restrictingRelationshipSortKey"),
EOSortOrdering.CompareAscending);
NSMutableArray sortArray=new NSMutableArray(sortOrdering);