title: Sorting an NSMutableArray of NSDIctionary objects on the basis of key value of dictionary that is a String
body: <p>I have an <code>NSMutablerray</code> of <code>NSDictionary</code> objects so that each item contains dictionary of various key value pairs. Each dictionary looks like this:</p>
  
  <pre><code>        id = 71324;
          type = UserQuestionExactMatch;
          url = "/user_questions/71324";
          value = "symptoms of hiv?";
          "verified_answers_count" = 2;
  </code></pre>
  
  <p>I have to populate a tableview with this array containing dictionary items as above on the basis of key value "type". So that if its '<strong>type</strong>' key value is '<strong>UserQuestionExactMatch</strong>' it comes at <strong>first row</strong>, if its '<strong>AttributeRelationshipMatch</strong>' it should come next and so on. Note that these types can be repeated i.e. there can be two dictionary objects of type '<strong>UserQuestionExactMatch</strong>' which should come <strong>first</strong>. How can I do this kind of sorting to implement a tableview? Is <code>NSSortDescriptor</code> useful in this case. If yes how can I implement it? Code snippets are welcome.</p>