 NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] init]; NSEntityDescription *entity = [NSEntityDescription entityForName:@"Tag" inManagedObjectContext:self.bankDetails.managedObjectContext]; [fetchRequest setEntity:entity]; NSSortDescriptor *sort