Sort groups in HTML docs.