Hostgroup Overview output

I have somewhere around 7 hostgroups with 6 of them containing between 4-10 hosts. The 6th hostgroup contains somewhere around ~70 hosts. That may seem excessive, but that is the prefered way to group them. Because this group is so large, it causes abnormal output on the Hostgroup Overview screen. This screen typically arranged into 3 columns and 3 rows and looks similar to this diagram (where the X blocks are hostgroups):

[code]
XX XX XX

XX XX XX
XX
XX
XX
XX

XX[/code]

I would prefer the long host group appear on the bottom by having Nagios do something like outputting them in order of length from shortest to longest. Is there some algorithm used to determine output or does anyone have any ideas on how I could implement it?

You have the source code, and it can be modified. Gof for it.

It would be better to put an X in front of the hostgroup name. That way it will be displayed at the bottom.