     // Fetch and return data
     return self.fetchAll(withPredicate: predicate, sortBy: sortBy, ascending: ascending, inContext: context, delegate: delegate)
   }
-  
-  #endif
   
   // MARK: - Aggregate functions
   

   - parameter inContext: context for search
   - parameter delegate: NSFetchedResultsControllerDelegate
   */
  static func fetchAll<T>(sortedBy: String, ascending: Bool, delegate: NSFetchedResultsControllerDelegate) -> NSFetchedResultsController<T>? {
    
    // Initialize Fetch Request

    return self.findAll(withPredicate: predicate)
  }
  
  // MARK: - NSFetchedResultsController functions
  
  /**
