• 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 not case sensitive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sort not case sensitive


  • Subject: Re: Sort not case sensitive
  • From: "Stockly, Ed" <email@hidden>
  • Date: Thu, 1 Jul 2010 16:23:12 -0500
  • Acceptlanguage: en-US
  • Thread-topic: Sort not case sensitive

OMM, the issue is it's not sorting at all, even if I ad a -f, or remove the
-n.

Try it with this as an unsorted list:

set unsortedList to {"12<>azertyuiop", "12<>Bzertyuiop", "12<>Azertyuiop",
"10<>sdf", "12<>azertyuiop", "12<>Bzertyuiop", "12<>Azertyuiop", "10<>sdf",
"12<>azertyuiop", "12<>Bzertyuiop", "12<>Azertyuiop", "10<>sdf",
"12<>azertyuiop", "12<>Bzertyuiop", "12<>Azertyuiop", "10<>sdf"} as text

Seems like the order is the same coming out as it was going in.

ES


On 7/1/10 2:01 PM, "KOENIG Yvan" <email@hidden> wrote:

> Hello
>
> I try to edit this script so that it become 'not case sensitive'.
>
> --[SCRIPT]
> set unsortedList to {"12<>azertyuiop", "12<>Bzertyuiop",
> "12<>Azertyuiop", "10<>sdf"}
>
> set AppleScript's text item delimiters to linefeed
> set sortedList to paragraphs of ¬
> (do shell script "echo " & quoted form of (unsortedList as string) &
> "| sort  -n")
> set AppleScript's text item delimiters to ""
> sortedList
> --[/SCRIPT]
>
> It seems that the option -n kills the effect of the option -f supposed
> to make the sort 'not case sensitive'
>
> Thanks in advance.
>
> Yvan KOENIG (VALLAURIS, France) jeudi 1 juillet 2010 23:00:53
>
>
>
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> com
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to 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: 
 >Sort not case sensitive (From: KOENIG Yvan <email@hidden>)

  • Prev by Date: Re: Sort not case sensitive
  • Next by Date: Re: Sort not case sensitive
  • Previous by thread: Re: Sort not case sensitive
  • Next by thread: Re: Sort not case sensitive
  • Index(es):
    • Date
    • Thread