title: Sort of an array from plist file
body: <p>I have a custom plist file which contains dictionaries. Each dictionary contains information about one car:</p>
  
  <pre><code>     &lt;key&gt;Ford&lt;/key&gt;
  &lt;dict&gt;
      &lt;key&gt;name&lt;/key&gt;
      &lt;string&gt;Ford&lt;/string&gt;
      &lt;key&gt;color&lt;/key&gt;
      &lt;string&gt;green&lt;/string&gt;
      &lt;key&gt;price&lt;/key&gt;
      &lt;integer&gt;45000&lt;/integer&gt;
  &lt;/dict
  
      &lt;key&gt;Toyota&lt;/key&gt;
  &lt;dict&gt;
      &lt;key&gt;name&lt;/key&gt;
      &lt;string&gt;Toyota&lt;/string&gt;
      &lt;key&gt;color&lt;/key&gt;
      &lt;string&gt;blue&lt;/string&gt;
      &lt;key&gt;price&lt;/key&gt;
      &lt;integer&gt;40000&lt;/integer&gt;
  &lt;/dict
  
      &lt;key&gt;BMW&lt;/key&gt;
  &lt;dict&gt;
      &lt;key&gt;name&lt;/key&gt;
      &lt;string&gt;BMW&lt;/string&gt;
      &lt;key&gt;color&lt;/key&gt;
      &lt;string&gt;blue&lt;/string&gt;
      &lt;key&gt;price&lt;/key&gt;
      &lt;integer&gt;40000&lt;/integer&gt;
  &lt;/dict&gt;
  </code></pre>
  
  <p>
  </p>
  
  <p>I also have an UITableView and I fill it with some cars from this plist.</p>
  
  <pre><code> NSEnumerator *enumerator = [dictionary objectEnumerator];
      id returnValue;
  
  
      while ((returnValue = [enumerator nextObject])) 
      {
  
          if ([[returnValue valueForKey:@"color"]isEqualToString:@"blue")
          {  
              [array addObject:[returnValue valueForKey:@"name"]];
          }
  </code></pre>
  
  <p><strong>Question:</strong> When I get an UITableView with some cars in it, how can I sort them by price now? For example, BMW is cheaper than Ford, so it should be in the first cell and Ford must be in a second cell. I know that Apple has already created easy ways to sort arrays but how can I use it here ? Thanks !
  Max</p>