Updated exception message to indicate how to fix the issue.
Added sorting for groups where children are <div><label>NAME</label>...</div>