Revert "add subcategories after the main categories in the 'catergories' property"

This reverts commit 97bd46d181394a996488833053c408f61105dd77.