• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: how to do a proper alphabetical sort?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >how to do a proper alphabetical sort? (From: "Patrik B." <email@hidden>)

  • Prev by Date: List size limit
  • Next by Date: Re: Global variables
  • Previous by thread: Re: how to do a proper alphabetical sort?
  • Next by thread: Re: how to do a proper alphabetical sort?
  • Index(es):
    • Date
    • Thread