• 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: Sort don't return what I wait
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Sort don't return what I wait
      • From: KOENIG Yvan <email@hidden>
References: 
 >Sort don't return what I wait (From: KOENIG Yvan <email@hidden>)
 >Re: Sort don't return what I wait (From: KOENIG Yvan <email@hidden>)

  • Prev by Date: Re: Sort don't return what I wait
  • Next by Date: Re: Sort don't return what I wait
  • Previous by thread: Re: Sort don't return what I wait
  • Next by thread: Re: Sort don't return what I wait
  • Index(es):
    • Date
    • Thread