Re: how to do a proper alphabetical sort?
Re: how to do a proper alphabetical sort?
- Subject: Re: how to do a proper alphabetical sort?
- From: "Mark J. Reed" <email@hidden>
- Date: Fri, 9 Mar 2007 09:17:53 -0500
On 3/8/07, Doug McNutt <email@hidden> wrote:
I have been told that the International Preferences contain sorting tables for the "right way" which is independent of character encoding. I believe it also includes "real numeric" sorting treating certain strings of decimal integers as multicharacter numbers.
The answers I have seen don't seem to address that concept, but Finder seems to do it while sorting file names in a directory.
The shell sort command (er, not to be confused with the Shellsort
algorithm...) also obeys locale settings. The default setting sorts
ASCIIbetically, but if you set your locale to, e.g., en_US.UTF-8, then
it sorts case-insentitively. However, I don't think the International
Preferences settings result in "do shell script" setting the shell
locale environment to match...
--
Mark J. Reed <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden