now correctly flags and sorts subcategory modules