title: Sorting NSMutableArray with class objects for a peticular object in alphabetical order
body: <p>I have an array with property class objects like</p>
  
  <pre><code>for (int i=0; i&lt;[eventList count]; i++) {
  
      NSDictionary *EventListDic=[eventList objectAtIndex:i];
  
      eventData.eventID=[EventListDic objectForKey:@"event_id"];
      eventData.eventsname=[EventListDic objectForKey:@"title"];
  
      [self.arrEventDataList addObject:eventData];
      [eventData release];
  
  }
  </code></pre>
  
  <p>I want to sort this array for <code>eventData.eventsname</code> key in alphabetical order. I tried out with following functionality, but it is not working. Please suggest me how to do this. Thanks in advance</p>
  
  <pre><code> NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc] initWithKey:@"title" ascending:NO];
   NSArray *orderedArray = [self.arrEventDataList sortedArrayUsingDescriptors:[NSArray arrayWithObject:sortDescriptor]];
  </code></pre>
  
  <p>I want to sort my arrEventDataList sorted by eventsname .</p>