Fixes issues with sorting the manage course group page. #403