On 6/5/13 1:54 AM, "Justin Mclean" <jus...@classsoftware.com> wrote:
>Hi, > >> 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 >>in >> 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? -Alex