groups() has an option to order by group size