title: How to sort NSArray based on manually sorted UITableView order
body: <p>I have a simple UITableView formed from a given NSArray (of NSDictionaries) in reverse order so that newly added cells would appear on top:</p>
  
  <pre><code> - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
  
      NSString *CellIdentifier = @"Cell";
      UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath];
  
      cell.textLabel.text = [(NSDictionary*)list[list.count - indexPath.row - 1] objectForKey:@"name"];
  
      return cell;
  }
  </code></pre>
  
  <p>The table can then be manually sorted by user:</p>
  
  <p><a href="http://i.stack.imgur.com/kn8BV.png" rel="nofollow">http://i.stack.imgur.com/kn8BV.png</a></p>
  
  <p>My question is how to get the array sorted in the way that the table would keep its new order next time user launches the app.</p>