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

Maurice Amsellem commented on FLEX-34317:
-----------------------------------------

MobileGrid already does numeric sorting on numeric columns.
The logic is in spark.colletions.SortField initializeDefaultCompareFunction:  
it will use numeric sorting if typeof(first row) = "number".

Is that what you are looking for, or a custom numeric sorting for data that is 
not of type "number".




> Sort MobileGridColumn Numerically
> ---------------------------------
>
>                 Key: FLEX-34317
>                 URL: https://issues.apache.org/jira/browse/FLEX-34317
>             Project: Apache Flex
>          Issue Type: New Feature
>          Components: Mobile: List
>    Affects Versions: Apache Flex 4.11.0, Apache Flex 4.12.0, Apache Flex 
> 4.13.0, Apache Flex 4.12.1
>         Environment: OSX
>            Reporter: Bryan Saltzman
>            Priority: Critical
>              Labels: grid, numeric, sort, sorting
>             Fix For: Apache Flex 4.13.0, Apache Flex 4.12.1
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> This is actually for the experimental and instrumental MobileGrid not listed 
> in the components dropdown. I need to be able to click on a header and sort 
> numeric data.  The MobileGridColumn doesn't have a sortCompareFunction so I 
> am not sure what to do.  It looks like a simple change.  
> https://apache.googlesource.com/flex-sdk/+/OK_commit_donation/frameworks/projects/experimental_mobile/src/spark/components/supportClasses/MobileGridColumn.as



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

Reply via email to