Wrote a test for sorting group members