Custom Prop Menu sorting

how do i sort the props in my custom prop menu into sections that say wood props then list the wooden props and then metal props and list the metal props. and when you click the text that says wooden props it will either hide the wooden props or show them.

bump

Just make a table for each