You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Justin Mclean (JIRA)" <ji...@apache.org> on 2014/07/07 09:57:35 UTC

[jira] [Commented] (FLEX-34381) Sorting behavior changed between Adobe and Apache Flex SDK (?)

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

Justin Mclean commented on FLEX-34381:
--------------------------------------

Was an change to fix several bugs involved with sorting and filtering. After sorting is set to null, collection.refresh() should be called, just like then setting up the sort order the sort order is not actually removed until collection.refresh() is called.

> 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)