SortedGrouping to move the group order from the Grouping

See #783