Re: Core Data and localized sort on iOS
Re: Core Data and localized sort on iOS
- Subject: Re: Core Data and localized sort on iOS
- From: Matt Neuburg <email@hidden>
- Date: Thu, 03 Jan 2013 14:54:01 -0800
On Jan 3, 2013, at 12:49 PM, Fritz Anderson wrote:
> A simple transliteration
I didn't say the transliteration was simple. I had to devise a code (properly called a "beta code") that would yield the correct result. To give a simple example, if you want a-accent-aigu to sort before a-accent-grave, you might transliterate them as a1 and a2. Or, just the other way round, if you want them to sort indifferently, you might transliterate them both as a. By the same token, I lowercased everything because I didn't want case to be significant in the sort order. But the point is that this code, once devised, can be machine-generated mechanically at the time you construct the database, and then Bob's your uncle. This technique is as old as the hills and quite as solid. m.
_______________________________________________
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