This is for front end Fan Pages and Groups.
Important!
It's very important to always have Sub-Categories for your Main Categories as the script sorts Fan Pages and Groups by the Sub-Categories. Sub-Categories designate whether this is a Fan Page or a Group and without those, the script can't properly sort them. Make sure your users know to always choose a Sub-Category when making their page/group.