Player 10.1 will add a new flash.globalization.Collator class for performing 
locale-dependent collation using operating system routines. So, on OS's that 
support Turkish collation, Player 10.1 will support Turkish collation. With 
earlier Players, you have to provide your own locale-dependent collation 
routines, as Gregor said.

Gordon Smith
Adobe Flex SDK Team

From: [email protected] [mailto:[email protected]] On Behalf 
Of Gregor Kiddie
Sent: Monday, February 01, 2010 7:19 AM
To: [email protected]
Subject: RE: [flexcoders] Sort function does not work with turkish characters


IIRC, the default Sort uses the ASCII values of the characters, so the Turkish 
characters appear later in the alphabet than I and S.

You may need to use a custom compare function which includes functionality for 
the Turkish alphabet.

Gk.


Hi everybody,

I'm also a newbie actionscript developer,  and i'm in trouble with sort 
function. I want to sort the array collection , it is successful with english 
characters, but when there is a turkish word beginning with  'İ', 'Ş',  it does 
not sort, putting these words at the end of the sorting. So i'm not able to do 
the right sorting. Any idea?

var sortField:SortField=new SortField(value);
                sortField.numeric=false;
                sortField.descending=false;
                var sort:Sort=new Sort();
                sort.fields=[sortField];
                xmlListColl.sort=sort;
                return xmlListColl.refresh();

Thanks all guys,,


Reply via email to