You could create a category results page and a separate subcategory results page... filter the subcategory results with a url parameter that is the category ID from the first category table.
Then use an include to include a new copy of the subcategory results after each category result... or if you are only showing one category per page then you could add it in with framework builder using a plugin.