title: Sort Array Based on Two Parameters
body: <p>I have an array of objects that consist of two properties: an <code>NSString</code> and a <code>BOOL</code>. I'd like to sort this array so that all the <code>BOOL</code>s that are <code>YES</code> appear before all the bools that are <code>NO</code>. Then I'd like for the list of objects that have the <code>BOOL YES</code> to alphabetized and I'd also like for the objects with the <code>NO</code> to be alphabetized. Is there some sort of library that can accomplish this in objective c? If not what is the most efficient way to do this?</p>