Deprecate GetGroupNames and sort the group list.