TNL-301 Filter posts by group_id.

https://openedx.atlassian.net/browse/TNL-301

@gwprice @jimabramson Please review.
That test is really too strict, but I suppose it's probably better for now to do the sort here than to complicate thez test case.