sorting subcategories + minor