flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com>
Subject Re: checkin tests filing on Linux
Date Wed, 05 Jun 2013 16:17:45 GMT

On 6/5/13 1:54 AM, "Justin Mclean" <justin@classsoftware.com> wrote:

>> I think the test is taking a bare low-level Flash array and sorting it,
>> then taking an ArrayCollection and applying a sort to it, and the order
>> both should match.
>Yep I got that but exactly why should they match?
>One is using the internalCompare method in spark.collections.Sort which
>ends up using ObjectUtils.stringCompare which uses the Flash native
>function localeCompare.  The other is doing an array sort using the
>collate method returned from flash.globilization.Collator("en_us).
>Normally I guess they should return the same results but I can't see that
>they would have to.
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?


View raw message