Hi, I have a Grid with grouping and I need to sort the groups with another criteria different from the default (for example, if you are using a string field to group records, the default sort is the alphabetical order).

Lets put an example using the demo here http://gwt-ext.com/demo/#gridGrouping
Grouping here is done using the 'industry' field, so groups are sorted using the alphabetical order of the industry (first Automotive, then Computer, etc...). What I need to do is to sort these groups under some other criteria, for example the number of records inside each group. Using this strategy groups would be listed as Automotive (1 record), then Food (2 records), .... last Manufacturing (9 records).

Is there any way to achieve this? The sorting function depends on some info inside the groups.