tags:

views:

21

answers:

2

Is there anyway I could use the same sortCompareFunction for multiple columns instead of adding a function for each column, as I have a datagrid with 50 columns in which the dataField of 40 columns is not string or number, it's an array so the default sorting of the column won't work. And according to adobe help the two parameters of the sortCompareFunction are entire data provider elements and not just the data for the item, so this means I have to define 40 sort functions one for each column. Is there any other solution?

Thanks in advance.

+1  A: 
2DH
Thank you very much
Yasmine