FIX: Include all categories in sortedCategories (PR #14979)

Fixes the issue where categories over two levels deep were missing.

GitHub

Um, excuse me, GitHub? Can I get the workflows running on this PR, please? :stuck_out_tongue:

Force pushing did the trick :laughing: