title: NSArray Sorting Examples
body: <p>Please anyone help me to find out the Sort elements of array which contains the names of students like:</p>
  
  <p><code>NSArray *studentsNames=@[@"bill", @"rob", @"ady",@"jhon", @"robert", @"prince"];</code> </p>
  
  <p>All sorting function present in <code>NSArray</code> like following :</p>
  
  <ol>
  <li><code>sortedArrayHint</code></li>
  <li><code>sortedArrayUsingFunction:context</code></li>
  <li><code>sortedArrayUsingFunction:context:hint</code></li>
  <li><code>sortedArrayUsingDescriptors</code></li>
  <li><code>sortedArrayUsingSelector</code></li>
  <li><code>sortedArrayUsingComparator</code></li>
  <li><code>sortedArrayWithOptions:usingComparator</code></li>
  </ol>
  
  <p>Please give me proper examples or link for this.</p>