View Full Version : Sorting groups in GroupingGrid

7 Jun 2011, 9:37 AM
Is there a way to sort groups when using a GroupingGrid? I am grouping by a field that is an Enum on the java side, and it sorts the groups by the alphabetical equivalent of the Enum value. I'd rather not prepend a letter to the Enum value, but I can add a sortValue member to the Enum, if that would help.

8 Jun 2011, 2:55 AM
Ah, this confirms my great propensity for astounding stupidity. Why do I need a sort value when I can just use the ordinal? And why must I use the enum text in my model when I can just (again) use the ordinal? Problem solved. As usual, when I run into these difficult situations, I am most likely thinking about it in the wrong way.