Re: Sorting filenames the way the Finder does?
Re: Sorting filenames the way the Finder does?
- Subject: Re: Sorting filenames the way the Finder does?
- From: Scott Anguish <email@hidden>
- Date: Thu, 7 Jun 2007 18:45:13 -0400
it says
Lists being sorted for end users should *always* use
localizedCompare: or localizedCaseInsensitiveCompare:. Only use
compare: if the end user will not see the ordering.
thus, *always* and my pointer
On Jun 7, 2007, at 6:29 PM, James Bucanek wrote:
That post doesn't say anything about sorting order, only how to call
the sort function of an NSArray.
If the suggestion is to use localizedCompare: or
localizedCaseInsensitiveCompare:, then the answer is wrong. That's
clearly not the (only) sorting rules used by the Finder. For one
thing, the Finder sorts numeric substrings as integer values --
localizedCompare: and localizedCaseInsensitiveCompare: don't.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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