Add a test that shows the problem.
Don't use Group Loop if outer loop has a Sort in it (after index selection).
merge MMcM: Do not select nested group operations when the outer loop has a Sort

Merge pull request #1280 from MMcM/sql-layer/sql-no-group-loop-with-sort
https://github.com/FoundationDB/sql-layer/pull/1280