title: Sorting in Objective C
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/805547/how-to-sort-an-nsmutablearray-with-custom-objects-in-it">How to sort an NSMutableArray with custom objects in it?</a>  </p>
  </blockquote>
  
  
  
  <p>I've searched around in google and can't seem to readily find the answer to what I'm looking for, so please do not post links, etc. I'd like to see some actual code.</p>
  
  <p>I am well versed in the code of Java, especially with implementing Comparable to create a "comparable" object which has a compareTo method. In my iPhone application, I have a class called "Contact" which I would like to do the same thing for such that I could somehow easily sort an NSMutableArray full of Contacts. How can I go about doing this?</p>