title: How to use filteredArrayUsingPredicate to filter UITableView?
body: <p>Thank you for helping out in advance.</p>
  
  <p>Trying to Autogroup UITableView alphabetically by following this solution: <a href="https://stackoverflow.com/questions/3377254/autogroup-uitableview-alphabetically">yasirmturk solution</a> But I am stuck at this part where he said:</p>
  
  <blockquote>
    <p>After that filter by alphabets:</p>
  </blockquote>
  
  <pre><code>NSArray *sectionArray = [vendorList filteredArrayUsingPredicate:[NSPredicate predicateWithFormat:@"SELF beginswith[c] %@", [self.sections objectAtIndex:section]]]; 
          rowCount = [sectionArray count];
  </code></pre>
  
  <p><strong>Question</strong>: Where should I put the NSArray *sectionArray code? More specifically?</p>
  
  <p><strong>Current Status</strong>:<a href="http://i1214.photobucket.com/albums/cc484/torresho/iOSSimulatorScreenshotDec2201352742PM_zps7d331c17.png" rel="nofollow noreferrer">Current Status (repeated array without filtering)</a></p>
  
  <p><strong>Expected Result</strong>: </p>
  
  <p>1) "Egg Benedict" should be under "E" section and "Ham and Egg Sandwich" under "H" section. </p>