CoreData many-to-many ranking predicate