title: How to get the object with the lowest property value from an NSArray
body: <p>I have an array of CLLocation objects. 
  If I use </p>
  
  <pre><code>CLLocation *bestLocation = [locations valueForKeyPath:@"@min.horizontalAccuracy"];
  </code></pre>
  
  <p>I'm getting the lowest horizontalAccuracy value. But I want the OBJECT that contains the lowest value, so that I can later get it's proper coodinates. How can I do that?</p>
  
  <p>I also tried with </p>
  
  <pre><code>CLLocation *bestLocation = [locations valueForKeyPath:@"@min.self.horizontalAccuracy"];
  </code></pre>
  
  <p>but got the same results.</p>
  
  <p>Thanks</p>