Sorting/Filtering Curtain Panel Geometry by Material

There is, but you might not like it.

Here I added a subcategory to the Family for all the parts of the Curtain Panel that need materials.

Then in the Project go add the Material to the SubCategory

Then expand your Element Geometry component to get the Category & corresponding geometry.