Task group sorting

Story: https://www.pivotaltracker.com/story/show/75460098