Card #146 - correct ordering of groups, parse html and order groups moved to rootscope (should be in util?)