Sort
Sort
- Subject: Sort
- From: Norio <email@hidden>
- Date: Sat, 10 May 2008 08:32:17 +0900
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 (email@hidden)
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:
This email sent to email@hidden
- Follow-Ups:
- Re: Sort
- From: Charles Steinman <email@hidden>