I think the only place you can use them both is from a resident table. You could load the inline data & group it into a resident table then pull it out of there in the order you prefer. I would only do that if there is further analysis you need to do on the data based on that load order within the script.
You will still need to address how it sort's in the app itself & go back into the sort tab and force it to sort on load order. Otherwise it will default to numeric ascending / alpha ascending.
If you use group by, it is not allowed (nor logical) to use any fields outside the group without aggregation. All records belonging to the same group are reduced to one row. The field age does not have a single value as different members to that group can have different ages. What you can do is: