Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Adobe Flex SDK Previous
-
None
-
None
-
Affected OS(s): All OS Platforms
Affected OS(s): All OS Platforms
Language Found: English
Description
When unique properties as true , and if there is same item in array collection , it will throw error like "Non-unique values in items".
However , if the ArrayCollection is a simple collection which only contains one field , it will not throw this error.
Please see attached file and run it :
Click "Sort Simple ArrayCollection" button , it will output the info from console like :
Simple Array: Ted,Imari,Umbra,Izzy,TJ,Bo,Danny,Molly,Molly,Matisse,barmen,Chumley,Moe,cadbury,Bunny,Daisy
Actually above simple array collection contain the two same "Molly" .
Then click the second button "Sort multi field collection" , it will throw error as expected.
then click again for the first button, "Sort Simple Collection " , this time the error is thrown .
It looks like that this problem only occur for the first time. and I also try mx:sort and sortfield , it has the same behavior .