chore(doc-gen): improve grouping and sorting of api nav items