I’m having some trouble about ordering records in an SQLite table used for my iOS project.
I’ve been looking for solution for a while, also asked the question here.
Since then, I got some help from a user in SQLite mail-list and he suggested me an extension, but it’s for windows. Here is the link.
And this extension is using CompareString function(see MSDN).
So that if I can manage to find equivalent of this function in Mac, I might be able to use the library in my Xcode project. Furthermore, that could create an alternative SQLite extension for iOS developers.
So is there such a function in Mac OS? Mostly similar maybe?
I’m not sure why your question was down-voted by someone else… maybe it’s because what you are asking for is not clear?
As for CompareString function equivalents, look at the various compare methods in NSString (such as
[NSString compare:]) and see if you can use something like to sort your UITableView.http://developer.apple.com/library/ios/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/Reference/NSString.html#//apple_ref/occ/instm/NSString/compare:options: