Order groups created by groupBy

I’m using the groupBy function, and I’d like to sort the groups. Is it possible ?

Yes, sorting works in case of grouping.

If grid sorted by column , by which grid grouped - order of groups changed
If grid sorted by any other columns - the order of groups not changed, but rows in groups sorted in necessary order.

You can use same command as in normal mode to force grid sorting
    grid.sortRows(…