Suppose that you have these 9 strings:0001,0002,0003,001,002,003,01,02,03.
I'd like to sort them as 0001,001,01,0002,002,02,0003,003,03 as Finder.

I tried a sample code of "Sorting strings like Finder" in "Searching,
Comparing, and Sorting Strings" in "String Programming Guide for
Cocoa".
However the result was 0001,001,01,002,0002,02,0003,003,03.
Also I tried localizedCaseInsensitiveCompare: but it did
0001,0002,0003,001,002,003,01,02,03.

Would you tell me how to do this? And I'd like to do this even on
Tiger, which can't use NSWidthInsensitiveSearch and
NSForcedOrderingSearch.
Thanks in advance.
Norio
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to