Re: Sorting characters of the text - script doesn't work as expected (Yvan KOENIG)
Re: Sorting characters of the text - script doesn't work as expected (Yvan KOENIG)
- Subject: Re: Sorting characters of the text - script doesn't work as expected (Yvan KOENIG)
- From: jif <email@hidden>
- Date: Tue, 18 Apr 2017 10:57:40 +0100
Re: Sorting characters of the text - script doesn't work as expected (Yvan KOENIG)
It doesn't work to write something like this ?
use framework "Foundation"
on sort(textList) ((current application's NSArray's arrayWithArray:textList)'s ¬ sortedArrayUsingSelector:"compare:") as list end sort
sort({"Καλλισθένης", "Ἐπίκουρος", "Δημοσθένης", "Αἴσωπος"})
--> {"Αἴσωπος", "Δημοσθένης", "Ἐπίκουρος", "Καλλισθένης"}
|
_______________________________________________
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