title: Sort an NSArray in Descending Order
body: <p>I have an <code>NSArray</code> of <code>NSNumber</code> objects that I have successfully sorted in ascending order using the following:</p>
  
  <pre><code>[myArray sortedArrayUsingSelector:@selector(compare:)]
  </code></pre>
  
  <p>However, I need to sort this in <em>descending</em> order. I take it that <code>compare:</code> only sorts in ascending order. While I can go about reversing the <code>NSArray</code>, I am curious as to whether or not there is a more simpler or more effective way of going about doing this.</p>
  
  <p><strong>EDIT</strong>: I found <a href="https://stackoverflow.com/questions/844189/is-there-an-easy-way-to-iterate-over-an-nsarray-backwards">this question</a> which provides a simple way to reverse iterate an <code>NSArray</code>:</p>
  
  <pre><code>for (id someObject in [myArray reverseObjectEnumerator])
  </code></pre>
  
  <p>This works fine, I guess it's a nice simple solution, but I'm curious as to whether or not there is a way to specify sorting in descending order.</p>