Never tried it myself, but see the doc here: http://flex.apache.org/asdoc/spark/components/DataGrid.html#event:sortChang ing
On 9/1/13 6:55 PM, "[email protected]" <[email protected]> wrote: >If I have a standard spark datagrid and click on a column to sort it, can >I somehow program a second column as a secondary sort? > >That is, the first column, which the user clicks on, is sorted, then a >predetermined second column is programmatically sorted. > >For example, the user clicks col2 to sort it, and col1 is used as >secondary sort, the result being: > >col1 col2 >A 1 >B 1 >A 2 >B 2 >C 2 >A 5 >A 8 >B 8 >C 8
