Interesting.  There was so much work done to integrate the globalization
classes that I'm surprised we didn't upgrade AC to use them.

IMO, the results of Array.sort with the globalization classes is "correct"
and localeCompare is doing a dumb sort.  I haven't looked but maybe we
documented how to use the globalization classes with AC and the sort test
should be doing that.

-Alex

On 6/5/13 10:54 PM, "Justin Mclean" <jus...@classsoftware.com> wrote:

>Hi,
>
>> Interesting.  I expected them to match because I thought we'd wired up
>>the
>> AC sort behavior to use the flash.globalization classes.  If you step
>> through this on the Mac it goes into localeCompare?
>
>On OSX it's calling spark.collections.Sort:internalSort which is using
>mx.xollections.SortField:stringCompare which uses
>ObjectUtils.stringCompare which uses localeCompare to compare strings. So
>for AC it's not using the flash globalisation classes. Not that changing
>that will fix the test (it may improve performance) as it look to be an
>issue with Array.sort() on Linux.
>
>Thanks,
>Justin

Reply via email to