There is noway sorting components as you said. Only manually set parts shown or hiding in drawings, anyway you can sorting parts at ERP or EXCEL database. No need sorting parts in drawing part list.
A macro could help to achieve such result.
Please refer to this example: #CODE|Change Components Visibility Depending On Material
In this example the visibility of components is controlled by material.
Also you could check these free tasks:
"Report part material" to see if all parts in specified folder have not assigned material or mathc written by you material name.
"Assign material" task to change material for all parts.
These task could help to process thousands of files with one click.
I assume that you are talking about assembly. You can use Assembly Visualization to sort out components by material. Select all parts with cretain materials (or without material) then go back to feature manager (selected components should remain selected) and RMB in 3d space, select Isolate.
Wow...Assembly Visualization is really, really nice! Tip of the hat to Krzystof W. for the suggestion.
Assembly visualization is one underrated tool which you can use to find other details also