CLN: Some groupby internals
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`

1. Avoids calling `_get_sorted_data()` twice
2. Eliminates `*args, **kwargs` from an internal function