[ 
https://issues.apache.org/jira/browse/FLEX-34381?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14053424#comment-14053424
 ] 

Santanu Karar edited comment on FLEX-34381 at 7/7/14 8:11 AM:
--------------------------------------------------------------

With the new design, there is no way to preserve previously sorting order after 
doing a collection.sort=null and collection.refresh() (as it was achievable 
with Adobe SDK after sort=null); or is there a way to preserve the order even 
after doing a sort=null and collection.refresh() in new updated SDK?


was (Author: santanu4ver):
With the new design, there is no way to preserve previously sorting order after 
doing a collection.sort=null and collection.refresh() (as it was achievable 
with Adobe SDK); or is there a way to preserve the order even after doing a 
sort=null and collection.refresh() in new updated SDK?

> Sorting behavior changed between Adobe and Apache Flex SDK (?)
> --------------------------------------------------------------
>
>                 Key: FLEX-34381
>                 URL: https://issues.apache.org/jira/browse/FLEX-34381
>             Project: Apache Flex
>          Issue Type: Bug
>    Affects Versions: Apache Flex 4.12.0
>            Reporter: Santanu Karar
>         Attachments: SortingWithAdobeSDK.fxp, SortingWithApacheSDK.fxp
>
>
> Hi, 
> I recently noticed some change in behavior between Apache and Adobe Flex SDK 
> (when working with our application which we shifted to Apache Flex SDK some 
> time back). 
> We have always seen that doing 'sort=null' stops any further sorting to a 
> collection of data (in Adobe's SDK). With Apache Flex SDK I've seen this 
> command makes no effect and sort mechanism is active. 
> To prove my query, I've attached herewith two Flex projects of one is using 
> Adobe Flex SDK (4.6) and Apache Flex SDK (4.11.0) the other. (I confirm this 
> behavior is exists in 4.12.1, too). Both are same application having a list 
> of unsorted data binding to a List component, and a button. When you hit the 
> button: 
> - Application sort the list 
> - Runs a command 'sort = null' to the collection 
> - Add a new entry at 0th index to the collection which starts with Z 
> character as initial 
> Results when used with Adobe Flex SDK: 
> - Application sort the list 
> - List shows data as - A, B, C, D 
> - null assigned to the collection.sort 
> - List added a new Z entry at 0th index and it shows as - Z, A, B, C, D 
> Results when used with Apache Flex SDK: 
> - Application sort the list 
> - List shows data as - A, B, C, D 
> - null assigned to the collection.sort 
> - List added a new Z entry at bottom and it shows as - A, B, C, D, Z 
> Is this something an intentional change with Apache Flex SDK or its an issue. 
> Please, suggest. 
> Thanks! 



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to