TNL-301 Filter posts by group_id.

https://openedx.atlassian.net/browse/TNL-301

@gwprice @jimabramson Please review.
I think the use of sorted on a map makes this unclear. I'd rather this be `users_by_id.keys()`