Re: Sorting with blank and special characters
Re: Sorting with blank and special characters
- Subject: Re: Sorting with blank and special characters
- From: Ricky Sharp <email@hidden>
- Date: Thu, 17 May 2007 04:09:55 -0700
On Thursday, May 17, 2007, at 05:38AM, "Micha Fuhrmann" <email@hidden> wrote:
>Hi there!
>
>I've got a table view column that's binded to a key of Objects in an
>array. That key contains blanks and other special characters such as
>"> < " etc. Now, I'd like to sort that column alphabetically then
>after "z" have all the special characters and then the blanks.
>
>By default the compare: selector puts the blank and special
>characters at the top.
Well, that's how collation of at least US English works. I believe that for characters in the ASCII7 space, they'll be listed in order of their code.
Do you work with Unicode? If so, perhaps they'll be different sorting according to what data you have along with the user's collation settings (see International Prefs).
If all you'll ever deal with is ASCII7, then it would be very easy to just make your own custom compare method.
--
Rick Sharp
Instant Interactive(tm)
_______________________________________________
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