show table view data grouped by on iphone
<p>i am pulling data from xml so is that possible to show them group by??</p>

<p>i have no plsit right now i am showing data just as simple so now i want group by what should be the approach/concept??</p>

<p>i did something like this but no luck</p>

<p><strong>d*<em>o i need to do some sorting?? like using NSSortDescriptor??</em>*</strong></p>

<p>if yes then where in <strong>viewdidload</strong> or in <strong>cellforrowatindxpath?</strong>?</p>

<pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    //UITableView *tableView;
    UITableViewCell *cell;
    static NSString *CellIdentifier = @"Cell";


    **Book *aBook = [appDelegate.books objectAtIndex:indexPath.row];**
</code></pre>

<p>/// how to arrange them in group by??</p>

<p>i tried this</p>

<pre><code>NSString *keys =aBook.name;
NSMutableDictionary *dicta = [NSMutableDictionary dictionary];
    [dicta setObject:keys forKey:@"message"];


    NSSortDescriptor *sortNameDescriptor = 
    [[[NSSortDescriptor alloc] 
      initWithKey:@"message" ascending:YES] 
     autorelease];
</code></pre>

<p>but i cant display them in alphabetical order :(</p>

<pre><code>}
</code></pre>

<p>Thanks </p>
