[ https://issues.apache.org/jira/browse/FLEX-24460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13637431#comment-13637431 ]
Justin Mclean commented on FLEX-24460: -------------------------------------- Can't reproduce seem to work fine. <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" initialize="init()"> <fx:Script> <![CDATA[ import mx.collections.ArrayCollection; import mx.collections.Sort; import mx.collections.SortField; import mx.events.FlexEvent; protected function init():void { var list:ArrayCollection = new ArrayCollection(["a","b","d","c"]); var sort:Sort = new Sort(); sort.fields = [new SortField(null,false,true)]; trace(list); list.sort = sort; list.refresh(); trace(list); list.removeAll(); trace(list); } ]]> </fx:Script> </s:Application> > Array Collection indexes don`t get reordered before removing all items > ---------------------------------------------------------------------- > > Key: FLEX-24460 > URL: https://issues.apache.org/jira/browse/FLEX-24460 > Project: Apache Flex > Issue Type: Bug > Components: Collections > Affects Versions: Adobe Flex SDK Previous > Environment: Affected OS(s): All OS Platforms > Affected OS(s): All OS Platforms > Language Found: English > Reporter: Adobe JIRA > Assignee: Justin Mclean > Labels: easyfix, easytest > > Steps to reproduce: > 1.Sort array collection > 2.invoke removeAll() > > Actual Results: > error is thrown > > Expected Results: > Remove all items from collection without need to reset sort > > Workaround (if any): > collection.sort = null > collection.refresh() > collection.removeAll() -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira