Re: Sort don't return what I wait
Re: Sort don't return what I wait
- Subject: Re: Sort don't return what I wait
- From: "Mark J. Reed" <email@hidden>
- Date: Mon, 16 Jun 2008 13:24:21 -0400
Note that sort(1) is sensitive to locale settings, specifically
LC_COLLATE; it obeys whatever sort order is specified in the named
locale's definition, which for instance allows it to properly deal
with alphabets that have digraphs. So if you want to be sure to sort
things Frenchly, you can use
do shell script "echo " & quoted form of tt & " | LC_COLLATE=fr_FR sort"
Besides -f, you may also wish to investigate the -d option, which
ignores everything except letters when doing the comparison and
thereby gets a more traditional result.
There have also been list-sorting handlers posted here that do the job
without the shell, usually relying on Applescript's relational
operators to determine the collation order.
_______________________________________________
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