title: How to sort a Array based on it's object's property?
body: <p>I have a NSArray of 'generic Objects' which contain the following properties</p>
  
  <pre><code>-name
  -id
  -type (question, topic or user)
  </code></pre>
  
  <p>How can I sort this array of generic object based on the generic object's type? E.g. I want to display all generic objects of type 'topic' on the top, followed by 'users' than 'questions'</p>