title: How to sort date?
body: <p>i have array Like :</p>
  
  <pre><code>&lt;__NSArrayM 0x79f3a4a0&gt;(
  {
      "act_date" = "02/03/2015";
      "act_id" = 3;
      "act_name" = test2;
  },
  {
      "act_date" = "03/03/2015";
      "act_id" = 4;
      "act_name" = test3;
  },
  {
      "act_date" = "01/03/2015";
      "act_id" = 5;
      "act_name" = test1;
  }
  )
  </code></pre>
  
  <p>i want to sort array with date. 
  i tried this method :</p>
  
  <pre><code>NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
  [formatter setDateFormat:@"MM/dd/yyyy"];
  NSMutableArray *tempArray = [NSMutableArray array];
  
  for (NSString *dateString in tblList)
  {
      NSDate *date = [formatter dateFromString:[dateString valueForKey:@"act_date"]];
      [tempArray addObject:date];
  }
  
     [tempArray sortUsingComparator:^NSComparisonResult(NSDate *date1, NSDate *date2) {
          // return date2 compare date1 for descending. Or reverse the call for ascending.
          return [date2 compare:date1];
      }];
  </code></pre>
  
  <p>But it returns only array with date, how do I add my all data with sorted date array??</p>