flex3 - Sorting problem after grouping -


Here's my advance data grid without grouping,

Once I apply the closing, Looking down, looking down,

Here is a piece of code that is applied after grouping and the grouping selection is assigned to the grid.

  validateNow (); Var s: Sort = New Sort (); S.fields = [New Order Field ("Danger")]; S.comparefunction = DangerArt Item; DataGrid.dataProvider.sort =; DataGrid.dataProvider.refresh ();  

Here is my comparison function,

  Personal Function Dangers (A: Object, B: object, field: array = null): int {return ObjectUtil .stringCompare (a.hazardnum.toString (), b.hazardnum.toString (), false); }  


Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -