title: How to let the sortedArrayUsingSelector using integer to sort instead of String?
body: <p>I have some data like this :</p>
  
  <p>1, 111, 2, 333, 45, 67, 322, 4445</p>
  
  <pre><code>NSArray *array = [[myData allKeys]sortedArrayUsingSelector: @selector(compare:)];
  </code></pre>
  
  <p>If I run this code, it sorted like this:</p>
  
  <blockquote>
    <p>1, 111, 2,322, 333, 4445, 45, 67,</p>
  </blockquote>
  
  <p>but I actually want this:</p>
  
  <blockquote>
    <p>1, 2, 45, 67, 111, 322, 333, 4445</p>
  </blockquote>
  
  <p>How can I implement it? thz u.</p>