title: How to sort 2d multidimensional NSMutablearray
body: <p>First i want to say sorry about my bad english. I hope you will unterstand.</p>
  
  <p>i searched over three days for my problem and I found no solution :(
  i have a NSMutablearray containing NSMutablearrays.</p>
  
  <p>I get the data from the web. The weboutput looks like:</p>
  
  <blockquote>
    <p>( ("Restaurant2" , "10" , "Hotel" , "Solitudestr" , "Germany" ,
    "48.81155" , "9.10903"),("Club 2" , "14" , "Club" , "Weilimdorfer213"
    , "Germany" , "48.814" , "9.1311666666667"),("Thai Meat" , "22" ,
    "Gastro" , "Weilimdorfer193" , " 70469 Stuttgart" , "48.813833333333"
    , "9.1328333333333") )</p>
  </blockquote>
  
  <p>So I have here 3 NSMutablearray's inside one NSMutablearray. I am showing the Array at my Tableview with a custom cellview.</p>
  
  <p>My question is how can I sort the three inner arrays with first Value.
  (Values of first Value: Restaurant2,Club 2,Thai Meat)</p>
  
  <p>So the first array should be:</p>
  
  <blockquote>
    <p>("Club 2" , "14" , "Club" , "Weilimdorfer213" , "Germany" , "48.814" ,
    "9.1311666666667")</p>
  </blockquote>
  
  <p>second:</p>
  
  <blockquote>
    <p>("Restaurant2" , "10" , "Hotel" , "Solitudestr" , "Germany" ,
    "48.81155" , "9.10903")</p>
  </blockquote>
  
  <p>third:</p>
  
  <blockquote>
    <p>("Thai Meat" , "22" , "Gastro" , "Weilimdorfer193" , " 70469
    Stuttgart" , "48.813833333333" , "9.1328333333333")</p>
  </blockquote>
  
  <p>Which sortfunction should I use and how?</p>
  
  <p>In the second step I want to get the distance of the given coordinates and sort the distance to the current position.</p>
  
  <p>I got the distance, already. But how to sort this?</p>
  
  <p>Thank you very much!</p>