Manage ordering in GroupRepository::add()