I had a problem sorting the wrt array:
NSSortDescriptor *sorter = [[NSSortDescriptor alloc] initWithKey:@"w" ascending:YES]; NSArray *sortDescriptors = [NSArray arrayWithObject: sorter]; [mGlossaryArray sortUsingDescriptors:sortDescriptors]; [sorter release];
Here, the database has the first few capital letters, and because of this capital letter, it does not show me the correct sorted output. Here I am sorting an array with rt "w", which is my table column in the database. Here I am attaching a screenshot for the output, which says that “Cancer” comes first than “c”, but this is not true, it does not give out alphabetically sorting due to headwords.
eg. if there is “capable” in lower case and “aCid”, then he will first show aCid and then he can, and there is also the case when the first letter is a cap, it occurs, for example, “Able” and “a”. Able is displayed here first. 
sorting iphone jquery-ui-sortable nsarray
Prash ....... Apr 04 2018-11-18T00: 00Z
source share