0

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?

Community
  • 1
  • 1
kubilay
  • 5,047
  • 7
  • 48
  • 66

1 Answers1

0

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:

Michael Dautermann
  • 88,797
  • 17
  • 166
  • 215
  • That's acceptable but why not to mention the reason? Next time I'll try to be more clear then. Thank you, that seems to be a good point to start. – kubilay Oct 20 '11 at 11:14
  • I'm still getting to know StackOverflow myself, but I believe the general purpose of voting on questions is to vote up a really good question or vote down a question that isn't very good. Also, if you accept an answer, you should mark the answer as "checked" (or accepted). It helps to motivate people to participate and help here. :-) – Michael Dautermann Oct 20 '11 at 11:17
  • I was just looking into the page, of course I'd mark it :-) Thanks, if there's an answer, it can't be anywhere else. – kubilay Oct 20 '11 at 11:24