Add sorting to group query

@gtrogers
@robyoung
Remove trailing slash from test

It is no longer required

@gtrogers
@robyoung
Refactor datetime helpers in test_support

@gtrogers
@robyoung
Re-add default sort order

@gtrogers
@robyoung