title: Sort Array By Sub-Array values in Objective C
body: <p>I have a multi item array in Objective C where every item is a sub-array with 4 items.I need to sort the main array based on one of the values of the sub-array. </p>
  
  <p>How can I do that (quickly)?</p>
  
  <p>Array looks like this:</p>
  
  <pre><code>    (
      Marly,
      "Avenida Caracas - Calle 51",
      "4.637467,-74.066799",
      a,
      "10070.563466"
  ),
      (
      "Calle 76",
      "Avenida Caracas - Calle 76",
      "4.662918,-74.061198",
      a,
      "7250.832506"
  ),
      (
      Profamilia,
      "Avenida Caracas - Calle 34",
      "4.621341,-74.06976",
      a,
      "11853.104432"
  ),
      (
      "Avenida 39",
      "Avenida Caracas - Calle 39",
      "4.626816,-74.068687",
      a,
      "11243.556349"
  )
  </code></pre>