GroupingView - Custom Sort on GroupBy Column?
This strikes me as very simple, yet how to do this is eluding me.
Suppose we a table/grid with 3 columns:
- Group name (String)
- Field name (String)
- Field value (String)
I want to sort by 1) group then 2) name. Seems simple, right?
Creating the requisite ListStore, ColumnConfigs, Grid, and StoreSortInfo objects, I can achieve the sort ordering I want in the standard GridView.
When I change the Grid's view to a GroupingView, specifying the groupBy as (obviously) group name, my custom sorting now seems to be ignored. I can easily go back and forth comparing the grid views, and the behavior works as expected in a regular GridView, but the sorting on the groupBy field seems to be ignored by the GroupingView.
Any clues on what detail I'm missing to sort the groupBy column for a GroupingView?