This is an undocumented assumption that your group class always has group ids that are comparable with <.  
That is fine for now, but eventually, you might want to have groupClass.comparator or something for defining an ordering of groups.