When both a sort and group are applied to a table, the sort will be applied separately to each group of records. I.e. in our example here, Opportunities will be sorted from A-->Z within the Atmosphere group, then again from A-->Z within the Earth System group, and so on.