title: Filtering Array but keeping the indexPath position
body: <p>I am using a <code>UISearchController</code> in my <code>updateSearchResultsForSearchController</code></p>
  
  <p>I am filtering an array of usernames with a <code>NSPredicate</code>:</p>
  
  <pre><code>        self.filteredChats.removeAll(keepCapacity: false)
  
      let searchPredicate = NSPredicate(format: "SELF CONTAINS[c] %@", searchController.searchBar.text!)
      let array = (self.gruppenNamen as NSArray).filteredArrayUsingPredicate(searchPredicate)
      self.filteredChats = array as! [String]
  </code></pre>
  
  <p>Is there a way to store the indexPath of each filtered element?
  I need to know that in order to display my cells correctly, since I am also using arrays for images and other data.</p>