flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mihai Chira (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FLEX-34852) Allow sorting by complex fields in ListCollectionView
Date Fri, 22 May 2015 14:34:18 GMT

     [ https://issues.apache.org/jira/browse/FLEX-34852?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Mihai Chira updated FLEX-34852:
-------------------------------
    Description: 
Currently the only way to sort by complex fields (e.g. "address.street") is to not specify
any sort fields and to use a custom compare function which knows which fields to check.

*Expected behaviour*: The code below sorts the items by the address.street field:

{code}
const sortByNameAscending:Sort = new Sort();
sortByNameAscending.fields = [new SortField("address.street", false, false)];
_sut.sort = sortByNameAscending;
{code}

*Note* this will allow FLEX-34837 to be fixed.

  was:
Currently the only way to sort by complex fields (e.g. "address.street") is to not specify
any sort fields and to use a custom compare function which knows which fields to check.

*Expected behaviour*: The code below sorts the items by the address.street field:

{code}
const sortByNameAscending:Sort = new Sort();
sortByNameAscending.fields = [new SortField("address.street", false, false)];
_sut.sort = sortByNameAscending;
{code}


> Allow sorting by complex fields in ListCollectionView
> -----------------------------------------------------
>
>                 Key: FLEX-34852
>                 URL: https://issues.apache.org/jira/browse/FLEX-34852
>             Project: Apache Flex
>          Issue Type: New Feature
>          Components: Collections, Spark: Sort and SortField
>    Affects Versions: Apache Flex 4.14.1
>            Reporter: Mihai Chira
>            Assignee: Mihai Chira
>             Fix For: Apache Flex 4.15.0
>
>
> Currently the only way to sort by complex fields (e.g. "address.street") is to not specify
any sort fields and to use a custom compare function which knows which fields to check.
> *Expected behaviour*: The code below sorts the items by the address.street field:
> {code}
> const sortByNameAscending:Sort = new Sort();
> sortByNameAscending.fields = [new SortField("address.street", false, false)];
> _sut.sort = sortByNameAscending;
> {code}
> *Note* this will allow FLEX-34837 to be fixed.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message