Re: Sorting Array Alphabetically
Re: Sorting Array Alphabetically
- Subject: Re: Sorting Array Alphabetically
- From: Deborah Goldsmith <email@hidden>
- Date: Mon, 16 Apr 2007 16:57:39 -0700
I was actually very pleased to see the collation results of
Hawaiian (I'm originally from Hawai'i). Although, I believe
collation (for now) only looks at the first letter.
Collation looks at one "collation element" at a time. In this case, a
collation element is a letter. So first it looks at the first
letters, then at the second, and so on. A difference in the first
letter is more important than a difference in the second.
Computer collation would not normally do something like sort all
words containing only Hawaiian letters before all other words. That
requires a more specialized sort.
Deborah Goldsmith
Internationalization, Unicode liaison
Apple Inc.
email@hidden
On Apr 16, 2007, at 3:46 PM, Ricky Sharp wrote:
On Apr 16, 2007, at 5:11 PM, Deborah Goldsmith wrote:
Here is a good introduction to the issues:
http://icu-project.org/userguide/Collate_Intro.html
If you really want to see how different collation can get, set
your collation order in International Preferences to "Hawaiian."
I was actually very pleased to see the collation results of
Hawaiian (I'm originally from Hawai'i). Although, I believe
collation (for now) only looks at the first letter.
English primary, Hawaiian secondary:
(aloha, amber, koa, mahalo, pqr, stuff, try, unique, zoo)
Hawaiian primary, English secondary:
(aloha, amber, unique, koa, mahalo, pqr, stuff, try, zoo)
Only 'aloha', 'koa' and 'mahalo' are true Hawaiian words. Had the
algorithm looked at words that contain letters only in the Hawaiian
alphabet, it would have placed those first (alphabetized amongst
themselves). Then, the "foreign" words would follow (also
alphabetized amongst themselves)
But, for the most part, any words starting with any of the 13
Hawaiian letters, will be placed first.
Note the "unique" placement of the word "unique". This is because
words beginning with vowels come before the letters.
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.com
_______________________________________________
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