Here's the challenge - grouping will ALWAYS happen before sorts. So, you actually need to do two groups on Name, but you'll use a formula for them (assuming you're prompting for sort order}:
{@Ascending Name}
If {?SortOrder} = 'Ascending' then {MyTable.Name} else ' '
{@Descending Name}
If {?SortOrder} = 'Descending' then {MyTable.Name} else ' '
This will give you the name in the group that controls the sort and a blank space in the other group. So, it doesn't really make any difference which one comes first on your groups.
-Dell