title: I want to sort an array using NSSortDescriptor
body: <p>I am having a problem regarding sorting an array w.r.t database:</p>
  
  <pre><code>NSSortDescriptor *sorter = [[NSSortDescriptor alloc] initWithKey:@"w" ascending:YES];
  NSArray *sortDescriptors = [NSArray arrayWithObject: sorter]; 
  
  [mGlossaryArray sortUsingDescriptors:sortDescriptors]; 
  [sorter release];
  </code></pre>
  
  <p>Here in database there are some first capital letters and because of that capital letter it does not show me proper sorted output. Here i am sorting an array with r.t "w" which is my table column in database.
  Here I have attach the screen shot for the output, which says that "Cancer" comes first than "c", but this is not correct, it is not giving alphabetically sort because of the capitalized words.</p>
  
  <p>eg. if there is "able" in lower case and "aCid" then it will show aCid first and then able, and there is  also a case where if the 1st letter is caps it comes first eg, "Able" and "a". Here Able displays first.<img src="https://i.stack.imgur.com/zsDiu.png" alt="enter image description here"></p>